# Error while installation

**URL:** <https://forum.ghost.org/t/error-while-installation/32535>\
**Category:** Installation\
**Created:** [September 3, 2022, 2:14pm UTC](https://forum.ghost.org/t/error-while-installation/32535 "2022-09-03T14:14:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniellop](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellop/32/16194_2.png) [@Daniellop](https://forum.ghost.org/u/Daniellop)\
**Post date:** [September 3, 2022, 2:14pm UTC](https://forum.ghost.org/t/error-while-installation/32535/1 "2022-09-03T14:14:08Z")

</div>

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

 ![Captura de Pantalla 2022-09-03 a la(s) 4.13.30 p.m.](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/3/d/3dafb41436a3b361d0f58517e8f7660f6d6a4b0c.jpeg)  
 ![Captura de Pantalla 2022-09-03 a la(s) 4.13.54 p.m.](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/8/6/8670da209c60ca1611ce1c45f9da2cbb62ed7cc3.png)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [September 3, 2022, 2:43pm UTC](https://forum.ghost.org/t/error-while-installation/32535/2 "2022-09-03T14:43:40Z")

</div>

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](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/e/f/efe3f3cd2667f5baa15a327e1d52c556598e8bfc.png)

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.?

> **[How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04](https://ghost.org/docs/install/ubuntu/)**
>
> A full production install guide for how to install the Ghost professional publishing platform on a production server running Ubuntu 16.04, 18.04, 20.04 or 22.04.

---

<div class="post-metadata">

**Author:** ![Daniellop](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellop/32/16194_2.png) [@Daniellop](https://forum.ghost.org/u/Daniellop)\
**Post date:** [September 3, 2022, 3:33pm UTC](https://forum.ghost.org/t/error-while-installation/32535/3 "2022-09-03T15:33:58Z")

</div>

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:

```auto
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".

```

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [September 4, 2022, 9:36pm UTC](https://forum.ghost.org/t/error-while-installation/32535/4 "2022-09-04T21:36:54Z")

</div>

Try `yarn cache clean` and them `ghost update`.

---

<div class="post-metadata">

**Author:** ![Daniellop](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellop/32/16194_2.png) [@Daniellop](https://forum.ghost.org/u/Daniellop)\
**Post date:** [December 8, 2022, 10:11am UTC](https://forum.ghost.org/t/error-while-installation/32535/5 "2022-12-08T10:11:27Z")

</div>

I’m still having this error.

---

<div class="post-metadata">

**Author:** ![Anwar\_Safii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/anwar_safii/32/23573_2.png) [@Anwar\_Safii](https://forum.ghost.org/u/Anwar_Safii)\
**Post date:** [March 2, 2023, 9:43am UTC](https://forum.ghost.org/t/error-while-installation/32535/6 "2023-03-02T09:43:00Z")

</div>

I have same problem in Cpanel

---

<div class="post-metadata">

**Author:** ![Bob\_Sleys](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bob_sleys/32/2568_2.png) [@Bob\_Sleys](https://forum.ghost.org/u/Bob_Sleys)\
**Post date:** [March 6, 2023, 12:50am UTC](https://forum.ghost.org/t/error-while-installation/32535/9 "2023-03-06T00:50:51Z")

</div>

Anyone find a solution to this? I’m having the same problem. Here is my console output:

node@Ghost-Dev:~/indoor$ yarn cache clean  
yarn cache v1.22.19  
success Cleared cache.  
Done in 5.18s.  
node@Ghost-Dev:~/indoor$ ghost update  
Working directory is not a recognisable Ghost installation.  
Run `ghost update` again within a folder where Ghost was installed with Ghost-CLI.  
node@Ghost-Dev:~/indoor$ ls -la  
total 9  
drwxr-xr-x 2 node node 2 Mar 6 00:43 .  
drwxr-xr-x 8 node node 11 Mar 5 23:15 …  
node@Ghost-Dev:~/indoor$ ghost install

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.

> **[Ghost](https://careers.ghost.org)**
>
> Ghost is a proud non-profit organisation building open source technology for fiercely independent, professional publishers.

✔ Checking system Node.js version - found v18.14.2  
✔ Checking current folder permissions  
✔ Checking memory availability  
✔ Checking free space  
✔ Checking for latest Ghost version  
✔ Setting up install directory  
✖ Downloading and installing Ghost v5.37.0  
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress  
warning ghost@5.37.0: The engine “cli” appears to be invalid.  
warning Resolution field “@elastic/elasticsearch@8.5.0” is incompatible with requested version “@elastic/elasticsearch@8.6.0”  
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 “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/logging@2.4.1” is incompatible with requested version “@tryghost/logging@2.4.0”  
warning Resolution field “@tryghost/logging@2.4.1” is incompatible with requested version “@tryghost/logging@2.4.0”  
warning Resolution field “moment@2.24.0” is incompatible with requested version “moment@^2.29.1”  
warning “@tryghost/kg-lexical-html-renderer \> @lexical/rich-text@0.7.9” has unmet peer dependency “@lexical/selection@0.7.9”.  
warning “@tryghost/kg-lexical-html-renderer \> @lexical/rich-text@0.7.9” has unmet peer dependency “@lexical/utils@0.7.9”.  
warning " \> bookshelf@1.2.0" has incorrect peer dependency “knex@\>=0.15.0 \<0.22.0”.  
warning Workspaces can only be enabled in private projects.

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

Debug Information:  
OS: Debian GNU/Linux, v11  
Node Version: v18.14.2  
Ghost-CLI Version: 1.24.0  
Environment: production  
Command: ‘ghost install’

Additional log info available in: /home/node/.ghost/logs/ghost-cli-debug-2023-03-06T00\_48\_17\_186Z.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](https://ghost.org/docs/ghost-cli/) for troubleshooting.
