Error while installation

Hey, I’m installing ghost on my ubuntu 20.04 machine and I’m getting this error:


Please paste console output as text rather than screenshots, so it is easily readable. Use this button from the toolbar.

Screenshot from 2022-09-03 15-23-48

Did you use the guide? It’s always useful to explain the steps you’ve taken. What specification is the server, version of database, CLI etc.?

1 Like

Sorry. Yeah I’ve seen all the documentation and all seems to be ok.

Mysql version: 8.0.30-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))
Node version: v16.17.0
Npm version: 8.15.0
Ghost-CLI version: 1.23.0
Server: Ubuntu 20.04.5 LTS. 44.96GB

The logs are the following:

Debug Information:
    OS: Ubuntu, v20.04.5 LTS
    Node Version: v16.17.0
    Ghost-CLI Version: 1.23.0
    Environment: production
    Command: 'ghost install'
Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@5.13.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.29.4"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
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 "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.3"
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.27.0"
warning Resolution field "@tryghost/logging@2.3.0" is incompatible with requested version "@tryghost/logging@2.2.3"
warning Resolution field "@tryghost/logging@2.3.0" is incompatible with requested version "@tryghost/logging@2.2.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
error An unexpected error occurred: "/home/ghostrun/.cache/yarn/v6/npm-is-extendable-0.1.1-62b110e289a471418e3ec36a617d472e301dfc89-integrity/node_modules/is-extendable/.yarn-metadata.json: Unexpected end of JSON input".

yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/var/www/dglobal/versions/5.13.0/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exit code: 1

--------------- stdout ---------------
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/var/www/dglobal/versions/5.13.0/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


--------------- stderr ---------------
warning ghost@5.13.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.29.4"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
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 "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.3"
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.27.0"
warning Resolution field "@tryghost/logging@2.3.0" is incompatible with requested version "@tryghost/logging@2.2.3"
warning Resolution field "@tryghost/logging@2.3.0" is incompatible with requested version "@tryghost/logging@2.2.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
error An unexpected error occurred: "/home/ghostrun/.cache/yarn/v6/npm-is-extendable-0.1.1-62b110e289a471418e3ec36a617d472e301dfc89-integrity/node_modules/is-extendable/.yarn-metadata.json: Unexpected end of JSON input".


Try yarn cache clean and them ghost update.