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