For serval days, I try to install Ghost on local ubuntu. But I face an error.
I face errors with npm and yarn on both sides. I run ghost doctor
ghost install local
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
✔ Checking system Node.js version - found v16.15.1
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for the latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v5.2.2
✔ Finishing install process
✔ Configuring Ghost
✔ Setting up an instance
✖ Starting Ghost
One or more errors occurred.
1) GhostError
Message: Ghost process exited with code: null
Debug Information:
OS: Ubuntu, v22.04 LTS
Node Version: v16.15.1
Ghost Version: 5.2.2
Ghost-CLI Version: 1.21.0
Environment: development
Command: 'ghost install local'
Additional log info is available in /home/rajdeepsingh/.ghost/logs/ghost-CLI-debug-2022-06-14T05_29_37_007Z.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.
rajdeepsingh@officialrajdeepsingh:~/working/ghostblog$
Log file
Debug Information:
OS: Ubuntu, v22.04 LTS
Node Version: v16.15.1
Ghost Version: 5.2.2
Ghost-CLI Version: 1.21.0
Environment: development
Command: 'ghost install local'
Message: Ghost process exited with code: null
Stack: Error: Ghost process exited with code: null
at ChildProcess.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/ghost-cli/lib/utils/local-process.js:68:24)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
ghost doctor command
rajdeepsingh@officialrajdeepsingh:~/working/ghostblog$ ghost doctor
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
It is running in development mode.
✔ Checking system Node.js version - found v16.15.1
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space