Hello everyone;
Apologies for the title for now. The error logs are too complicated so I can’t point out what to write in the title. Suggestions appreciated.
reo@reo-vps:~/applications/ghost$ ghost install
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
✔ Checking system Node.js version - found v18.20.3
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✖ Downloading and installing Ghost v5.83.0
A ProcessError occurred.
Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@5.83.0: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.31"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "jackspeak@2.1.1" is incompatible with requested version "jackspeak@^2.3.5"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.3"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.33"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/errors@1.3.2" is incompatible with requested version "@tryghost/errors@1.3.1"
warning Resolution field "@tryghost/logging@2.4.15" is incompatible with requested version "@tryghost/logging@2.4.10"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning " > bookshelf@1.2.0" has incorrect peer dependency "knex@>=0.15.0 <0.22.0".
error /home/reo/applications/ghost/versions/5.83.0/node_modules/re2: Command failed.
Exit code: 1
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || npm run rebuild
Arguments:
Directory: /home/reo/applications/ghost/versions/5.83.0/node_modules/re2
Output:
Trying https://github.com/uhop/node-re2/releases/download/1.20.9/linux-arm64-108.br ...
Trying https://github.com/uhop/node-re2/releases/download/1.20.9/linux-arm64-108.gz ...
Building locally ...
> re2@1.20.9 rebuild
> node-gyp rebuild
> re2@1.20.9 rebuild
> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@10.0.1
gyp info using node@18.20.3 | linux | arm64
gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/.cache/node-gyp/18.20.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/reo/.cache/node-gyp/18.20.3',
gyp info spawn args '-Dnode_gyp_dir=/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/reo/.cache/node-gyp/18.20.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/reo/applications/ghost/versions/5.83.0/node_modules/re2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/which/lib/index.js:16:17)
gyp ERR! stack at which (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/which/lib/index.js:77:9)
gyp ERR! stack at async doWhich (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:112:22)
gyp ERR! stack at async loadConfigGypi (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:77:7)
gyp ERR! stack at async build (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:35:3)
gyp ERR! stack at async run (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/bin/node-gyp.js:81:18)
gyp ERR! System Linux 6.8.0-31-generic
gyp ERR! command "/usr/bin/node" "/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/reo/applications/ghost/versions/5.83.0/node_modules/re2
gyp ERR! node -v v18.20.3
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.20.3
gyp info it worked if it ends with ok
gyp info using node-gyp@10.0.1
gyp info using node@18.20.3 | linux | arm64
gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/reo/.cache/node-gyp/18.20.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/reo/.cache/node-gyp/18.20.3',
gyp info spawn args '-Dnode_gyp_dir=/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/reo/.cache/node-gyp/18.20.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/reo/applications/ghost/versions/5.83.0/node_modules/re2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/which/lib/index.js:16:17)
gyp ERR! stack at which (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/which/lib/index.js:77:9)
gyp ERR! stack at async doWhich (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:112:22)
gyp ERR! stack at async loadConfigGypi (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:77:7)
gyp ERR! stack at async build (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/lib/build.js:35:3)
gyp ERR! stack at async run (/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/node-gyp/bin/node-gyp.js:81:18)
gyp ERR! System Linux 6.8.0-31-generic
gyp ERR! command "/usr/bin/node" "/home/reo/applications/ghost/versions/5.83.0/node_modules/re2/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/reo/applications/ghost/versions/5.83.0/node_modules/re2
gyp ERR! node -v v18.20.3
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Exit code: 1
Debug Information:
OS: Ubuntu, v24.04 LTS
Node Version: v18.20.3
Ghost-CLI Version: 1.26.0
Environment: production
Command: 'ghost install'
Additional log info available in: /home/reo/.ghost/logs/ghost-cli-debug-2024-06-04T23_48_09_341Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
The installation directory (applications/ghost) is empty.
The VPS is just new and I’ve been following the official guide here: How to install & setup Ghost on Ubuntu 20.04 or 22.04
My nodejs version: v18.20.3
Thanks for your help