Warning " > bookshelf@0.14.2" has incorrect peer dependency "knex@>=0.6.10 <0.15.0"

Hi team,

I don’t think I was able to find an answer to my question, so please excuse me if this is a duplicate.
Tried upgrading my ghost (it’s currently 3.0.2) to the latest, i.e. 3.0.3, but received the error below.
Happy to attach full diagnostic log if need be, however am hoping someone knows how to deal with it?
Thanks in advance!

ghost-mgr@ghost:/var/www/ghost$ ghost update

  • sudo systemctl is-active ghost_stig-dlugosz-eu
    :heavy_check_mark: Checking system Node.js version
    :heavy_check_mark: Ensuring user is not logged in as ghost user
    :heavy_check_mark: Checking if logged in user is directory owner
    :heavy_check_mark: Checking current folder permissions
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
    :heavy_check_mark: Checking for available migrations
    :heavy_check_mark: Checking for latest Ghost version
    :heavy_multiplication_x: Downloading and updating Ghost to v3.0.3
    A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.0.3: The engine “cli” appears to be invalid.
warning " > bookshelf@0.14.2" has incorrect peer dependency “knex@>=0.6.10 <0.15.0”.

yarn install v1.19.1
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
[5/5] Building fresh packages…

Debug Information:
OS: Ubuntu, v16.04.6 LTS
Node Version: v10.17.0
Ghost Version: 3.0.2
Ghost-CLI Version: 1.13.1
Environment: production
Command: ‘ghost update’

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2019-11-21T07_22_41_882Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for troubleshooting.
ghost-mgr@ghost:/var/www/ghost$ ghost doctor
:heavy_check_mark: Checking system Node.js version
:heavy_check_mark: Checking logged in user
:heavy_check_mark: Ensuring user is not logged in as ghost user
:heavy_check_mark: Checking if logged in user is directory owner
:heavy_check_mark: Checking current folder permissions
:heavy_check_mark: Checking operating system compatibility
:heavy_check_mark: Checking for a MySQL installation

  • sudo systemctl is-active ghost_stig-dlugosz-eu
    Instance is currently running
    :information_source: Validating config [skipped]
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
    :heavy_check_mark: Checking binary dependencies
    ghost-mgr@ghost:/var/www/ghost$

Hey! Looks like that same error has been reported on the Ghost CLI GitHub repo, you might be better off following the conversation over there:

Thanks, David, appreciate it. Had a quick peek, no definite answer over there I could see so far, but I’ll keep monitoring. In the meantime if there’s anyone here who experienced similar issue I’m all ears. Cheers.

1 Like

Experiencing the same error. @stiggy - were you able to find a fix?

Nope, sorry. Seems as if our two instances are somewhat isolated, so far, so there isn’t much drive to find a solution and I’m not that tech savvy to be able to do a little more digging on my own, unfortunately, unless someone points me in the right direction… :slight_smile:

I think I figured it out. Try running these -

First -
sudo npm install -g ghost-cli@latest

Next -
sudo npm install -g npm

The Ghost update went smoothly after that.

2 Likes

Holy crap, that easy, huh. You’re a legend, thanks much, yes it works, yay! :slight_smile: