Ghost report it’s not running the last version of Ghost-CLI
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run npm install -g ghost-cli@latest to upgrade.
**I have try to run sudo npm install -g ghost-cli@latest but it doesn’t update the version to the last version (1.7.3)
I have also try to run sudo npm i -g ghost-cli@1.17.3 - Dont work!
To Reproduce
Go to your ghost install dir. My dir is: /var/www/ghost
How did you originally install the CLI? If you installed with yarn it might be overtaking the npm installation. Run whereis ghost to see if there are multiple references to it
ghost-mgr@s1:~$ npm list -g --depth=0
/usr/lib
├── n@7.2.2
└── npm@6.14.13
If i run: sudo npm list-g --depth=0 i get this:
ghost-mgr@s1:~$ sudo npm list-g --depth=0
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/ghost-mgr/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/ghost-mgr/package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-03T17_42_08_551Z-debug.log
Are you using n for node version management? That might be causing issues. Can you also run sudo yarn global list and yarn global list just to be safe?