$ whereis ghost ghost: /usr/bin/ghost /usr/local/bin/ghost $ /usr/local/bin/ghost version Ghost-CLI version: 1.17.3 Ghost version: 4.48.2 (at /var/www/ghost/www.reposium.com) $ /usr/bin/ghost version Love open source? We’re hiring Node.js Engineers to work on Ghost full-time. https://careers.ghost.org/product-engineer-node-js Ghost-CLI version: 1.21.0 Ghost version: 4.48.2 (at /var/www/ghost/www.reposium.com) So, I have 2 versions of the binary ghost installed : $ ls -l /usr/bin/ghost /usr/local/bin/ghost lrwxrwxrwx 1 root root 39 Jul 12 01:14 /usr/bin/ghost -> ../lib/node_modules/ghost-cli/bin/ghost lrwxrwxrwx 1 root root 52 May 24 2021 /usr/local/bin/ghost -> ../share/.config/yarn/global/node_modules/.bin/ghost
by default the /usr/local/bin one is the one chosen (because of my PATH) .
It seems that the problem is coming from a mix of yarn and npm usage ?
$ npm list -g --depth=0 /usr/lib ├── firstname.lastname@example.org ├── email@example.com ├── firstname.lastname@example.org ├── email@example.com └── firstname.lastname@example.org
I think this is the source of this :
$ ghost doctor ✖ Checking system Node.js version - found v16.16.0 ✔ Checking logged in user ✔ Ensuring user is not logged in as ghost user ✔ Checking if logged in user is directory owner ✔ Checking current folder permissions System checks failed with message: 'Linux version is not Ubuntu 16, 18, or 20' Some features of Ghost-CLI may not work without additional configuration. For local installs we recommend using `ghost install local` instead. ? Continue anyway? Yes System stack check skipped ℹ Checking system compatibility [skipped] ✔ Checking for a MySQL installation + sudo systemctl is-active ghost_www-reposium-com Instance is currently running ℹ Validating config [skipped] ✔ Checking folder permissions ✔ Checking file permissions ✔ Checking content folder ownership ✔ Checking memory availability ✖ Checking binary dependencies ✔ Checking free space ✔ Checking systemd unit file ✔ Checking systemd node version - found v16.16.0 One or more errors occurred. 1) Checking system Node.js version Message: The version of Node.js you are using is not supported. Supported: ^10.13.0 || ^12.10.0 || ^14.15.0 Installed: 16.16.0 See https://ghost.org/docs/faq/node-versions/ for more information 2) Checking binary dependencies Message: The installed node version has changed since Ghost was installed. Help: Run ghost update 4.48.2 --force to re-install binary dependencies. Debug Information: OS: Ubuntu, v21.04 Node Version: v16.16.0 Ghost Version: 4.48.2 Ghost-CLI Version: 1.17.3 Environment: production Command: 'ghost doctor' Try running ghost doctor to check your system for known issues. You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
Thank you !