# Cannot install Ghost locally

**URL:** <https://forum.ghost.org/t/cannot-install-ghost-locally/9508>\
**Category:** Installation\
**Created:** [October 13, 2019, 12:46pm UTC](https://forum.ghost.org/t/cannot-install-ghost-locally/9508 "2019-10-13T12:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomireland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tomireland/32/4751_2.png) [@tomireland](https://forum.ghost.org/u/tomireland)\
**Post date:** [October 13, 2019, 12:46pm UTC](https://forum.ghost.org/t/cannot-install-ghost-locally/9508/1 "2019-10-13T12:46:07Z")

</div>

Hey, folks.

I have spent the better part of a few hours trying to figure out why I keep getting an error when trying to install Ghost locally for doing some theme development, however, I have not yet been able to find a solution. Tried uninstalling ghost-cli and reinstalling it with no joy. 🙁

I have done `ghost install local --verbose` so you get the complete output. There seems to be no issue with permissions. If I run `ghost run` there is no error or PID. If I run `ghost run -D` the server starts fine and there is no error.

Have also tried doing the actions as per one of the GitHub bugs with the same error by removing ‘node\_modules’ then clearing the yarn cache and running `yarn install` again. Everything is okay but I still get the error on install.

Any clues?

The debug output has not thrown up anything I can make sense of as to the cause of the problem and it seems this error has come up a few times for others.

```auto
ghost install local --verbose
[13:19:23] Checking for Ghost-CLI updates [started]
[13:19:23] Checking for Ghost-CLI updates [completed]
[13:19:23] Ensuring correct ~/.config folder ownership [started]
[13:19:23] Ensuring correct ~/.config folder ownership [completed]
[13:19:23] Checking system Node.js version [started]
[13:19:23] Checking system Node.js version [completed]
[13:19:23] Checking current folder permissions [started]
[13:19:23] Checking current folder permissions [completed]
[13:19:23] Checking memory availability [started]
[13:19:23] Checking memory availability [completed]
[13:19:23] Checking for latest Ghost version [started]
[13:19:24] Checking for latest Ghost version [completed]
[13:19:24] Setting up install directory [started]
[13:19:24] Setting up install directory [completed]
[13:19:24] Downloading and installing Ghost [started]
[13:19:24] Downloading and installing Ghost v2.36.0 [title changed]
[13:19:24] Getting download information [started]
[13:19:24] Getting download information [completed]
[13:19:24] Downloading [started]
[13:19:25] Downloading [completed]
[13:19:25] Installing dependencies [started]
[13:19:26] → yarn install v1.16.0
[13:19:26] → [1/5] Validating package.json...
[13:19:26] → [2/5] Resolving packages...
[13:19:26] → [3/5] Fetching packages...
[13:19:26] → [4/5] Linking dependencies...
[13:19:29] → [5/5] Building fresh packages...
[13:19:32] → Done in 5.96s.
[13:19:32] Installing dependencies [completed]
[13:19:32] Downloading and installing Ghost v2.36.0 [completed]
[13:19:32] Finishing install process [started]
[13:19:32] Linking latest Ghost and recording versions [started]
[13:19:32] Linking latest Ghost and recording versions [completed]
[13:19:32] Linking latest Casper [started]
[13:19:32] Linking latest Casper [completed]
[13:19:32] Finishing install process [completed]
[13:19:32] Configuring Ghost [started]
[13:19:32] Configuring Ghost [completed]
[13:19:32] Setting up instance [started]
[13:19:32] Setting up instance [completed]
[13:19:32] Ensuring user is not logged in as ghost user [started]
[13:19:32] Ensuring user is not logged in as ghost user [skipped]
[13:19:32] Checking if logged in user is directory owner [started]
[13:19:32] Checking if logged in user is directory owner [skipped]
[13:19:32] Checking current folder permissions [started]
[13:19:32] Checking current folder permissions [completed]
[13:19:32] Validating config [started]
[13:19:32] Validating config [completed]
[13:19:32] Checking memory availability [started]
[13:19:32] Checking memory availability [completed]
✖ Starting Ghost
A GhostError occurred.

Message: Ghost process exited with code: null
Stack: Error: Ghost process exited with code: null
    at ChildProcess.cp.on (/usr/local/lib/node_modules/ghost-cli/lib/utils/local-process.js:56:24)
    at ChildProcess.emit (events.js:198:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

Debug Information:
    OS: Ubuntu, v18.04
    Node Version: v10.16.1
    Ghost-CLI Version: 1.11.0
    Environment: development
    Command: 'ghost install local --verbose'

```

---

<div class="post-metadata">

**Author:** ![evilbob](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@evilbob](https://forum.ghost.org/u/evilbob)\
**Post date:** [October 17, 2019, 2:22pm UTC](https://forum.ghost.org/t/cannot-install-ghost-locally/9508/2 "2019-10-17T14:22:40Z")

</div>

Make sure you are not running the installer as the root user or the ghost user. Do you have any errors related to ghost in the /var/log/syslog ? Anything interesting if you use command journalctl -u ghost ?

Not a pro just trying to help.

---

<div class="post-metadata">

**Author:** ![tomireland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tomireland/32/4751_2.png) [@tomireland](https://forum.ghost.org/u/tomireland)\
**Post date:** [October 17, 2019, 3:03pm UTC](https://forum.ghost.org/t/cannot-install-ghost-locally/9508/3 "2019-10-17T15:03:05Z")

</div>

Thanks for your help, @evilbob. I actually got this working properly yesterday. I think I might have had conflicting node versions install. Cannot be sure, however, I upgraded Node and everything is working fine.

---

<div class="post-metadata">

**Author:** ![evilbob](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@evilbob](https://forum.ghost.org/u/evilbob)\
**Post date:** [October 17, 2019, 5:18pm UTC](https://forum.ghost.org/t/cannot-install-ghost-locally/9508/4 "2019-10-17T17:18:39Z")

</div>

Glad you got it working!
