Stuck - Installing to Dreamhost shared server via SSH

Running npm install -g ghost-cli from terminal, and the install keeps getting stuck at rxjs in different places

  1. reify:rxjs: timing reifyNode:node_modules/ghost-cli/node_modules/listr/no
  2. reify:rxjs: timing reifyNode:node_modules/ghost-cli/node_modules/inquirer
  3. reify:rxjs: info run yarn@1.22.19 preinstall node_modules/ghost-cli/node_m
  • Checked, and not a resource issue
  • Tried installing rxjs separately, first, then tried installation again
  • Switched to Taobao registry, then tried installation again

Still stuck. Any ideas?

Node.js 18.19.0
npm 8.19.4

None of the log lines you provided are even complete single lines of logging. Try copy/pasting a complete complete set of installation logs.

Also, confirm your OS and version and your DreamHost plan. The DreamHost VPS plan is likely the only the one that has a chance of working.

It’s not clear that Ghost can work on shared hosting without root access.

Thanks Mark. Yeah, Ghost says it will work with DreamHost but doesn’t clarify about shared hosting.

Here’s the last part of the log. I cannot cut and past the full log due to char limit:

4056 timing reifyNode:node_modules/ghost-cli/node_modules/download/node_modules/got/node_modules/get-stream Completed in 5968ms
4057 http fetch GET 200 https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz 4401ms (cache miss)
4058 timing reifyNode:node_modules/ghost-cli/node_modules/boxen Completed in 5964ms
4059 http fetch GET 200 https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz 4399ms (cache miss)
4060 timing reifyNode:node_modules/ghost-cli/node_modules/abbrev Completed in 5963ms
4061 http fetch GET 200 https://registry.npmjs.org/find-plugins/-/find-plugins-1.1.7.tgz 4459ms (cache miss)
4062 timing reifyNode:node_modules/ghost-cli/node_modules/generate-password Completed in 5971ms
4063 timing reifyNode:node_modules/ghost-cli/node_modules/type-fest Completed in 5990ms
4064 timing reifyNode:node_modules/ghost-cli/node_modules/cli-table3 Completed in 5970ms
4065 http fetch GET 200 https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz 4404ms (cache miss)
4066 timing reifyNode:node_modules/ghost-cli/node_modules/chalk Completed in 5969ms
4067 timing reifyNode:node_modules/ghost-cli/node_modules/fkill/node_modules/execa Completed in 5973ms
4068 timing reifyNode:node_modules/ghost-cli/node_modules/find-plugins Completed in 5974ms
4069 http fetch GET 200 https://registry.npmjs.org/@tryghost/zip/-/zip-1.1.40.tgz 4403ms (cache miss)
4070 timing reifyNode:node_modules/ghost-cli/node_modules/@tryghost/zip Completed in 5968ms
4071 timing reifyNode:node_modules/ghost-cli/node_modules/@stdlib/utils-keys Completed in 5983ms
4072 http fetch GET 200 https://registry.npmjs.org/got/-/got-9.6.0.tgz 4488ms (cache miss)
4073 timing reifyNode:node_modules/ghost-cli/node_modules/@tryghost/errors Completed in 5996ms
4074 timing reifyNode:node_modules/ghost-cli/node_modules/got Completed in 5993ms
4075 timing reifyNode:node_modules/ghost-cli/node_modules/download/node_modules/@sindresorhus/is Completed in 5999ms
4076 timing reifyNode:node_modules/ghost-cli/node_modules/replace-in-file Completed in 6089ms
4077 http fetch GET 200 https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz 4606ms (cache miss)
4078 timing reifyNode:node_modules/ghost-cli/node_modules/inquirer Completed in 6106ms
4079 http fetch GET 200 https://registry.npmjs.org/semver/-/semver-7.5.4.tgz 4845ms (cache miss)
4080 timing reifyNode:node_modules/ghost-cli/node_modules/fs-extra Completed in 6169ms
4081 timing reifyNode:node_modules/ghost-cli/node_modules/semver Completed in 6175ms
4082 http fetch GET 200 https://registry.npmjs.org/systeminformation/-/systeminformation-5.21.11.tgz 4885ms (cache miss)
4083 http fetch GET 200 https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz 4716ms (cache miss)
4084 http fetch GET 200 https://registry.npmjs.org/validator/-/validator-7.2.0.tgz 4890ms (cache miss)
4085 timing reifyNode:node_modules/ghost-cli/node_modules/systeminformation Completed in 6204ms
4086 timing reifyNode:node_modules/ghost-cli/node_modules/mysql2/node_modules/iconv-lite Completed in 6203ms
4087 timing reifyNode:node_modules/ghost-cli/node_modules/validator Completed in 6206ms
4088 http fetch GET 200 https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz 4906ms (cache miss)
4089 http fetch GET 200 https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz 4957ms (cache miss)
4090 http fetch GET 200 https://registry.npmjs.org/got/-/got-11.8.6.tgz 4802ms (cache miss)
4091 timing reifyNode:node_modules/ghost-cli/node_modules/uuid Completed in 6273ms
4092 timing reifyNode:node_modules/ghost-cli/node_modules/yargs Completed in 6272ms
4093 timing reifyNode:node_modules/ghost-cli/node_modules/package-json/node_modules/got Completed in 6271ms
4094 http fetch GET 200 https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz 4719ms (cache miss)
4095 timing reifyNode:node_modules/ghost-cli/node_modules/bluebird Completed in 6286ms
4096 http fetch GET 200 https://registry.npmjs.org/ghost-cli/-/ghost-cli-1.25.3.tgz 5802ms (cache miss)
4097 timing reifyNode:node_modules/ghost-cli Completed in 6397ms
4098 http fetch GET 200 https://registry.npmjs.org/mysql2/-/mysql2-2.3.3.tgz 4903ms (cache miss)
4099 timing reifyNode:node_modules/ghost-cli/node_modules/mysql2 Completed in 6383ms
4100 http fetch GET 200 https://registry.npmjs.org/async/-/async-2.6.4.tgz 4992ms (cache miss)
4101 timing reifyNode:node_modules/ghost-cli/node_modules/portfinder/node_modules/async Completed in 6399ms
4102 http fetch GET 200 https://registry.npmjs.org/async/-/async-3.2.5.tgz 5294ms (cache miss)
4103 timing reifyNode:node_modules/ghost-cli/node_modules/async Completed in 6413ms
4104 http fetch GET 200 https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz 5233ms (cache miss)
4105 timing reifyNode:node_modules/ghost-cli/node_modules/resolve Completed in 6416ms
4106 http fetch GET 200 https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz 5387ms (cache miss)
4107 timing reifyNode:node_modules/ghost-cli/node_modules/yarn Completed in 6700ms
4108 http fetch GET 200 https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz 5776ms (cache miss)
4109 timing reifyNode:node_modules/ghost-cli/node_modules/@types/node Completed in 6791ms
4110 http fetch GET 200 https://registry.npmjs.org/moment/-/moment-2.27.0.tgz 5891ms (cache miss)
4111 timing reifyNode:node_modules/ghost-cli/node_modules/moment Completed in 7376ms
4112 http fetch GET 200 https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz 6809ms (cache miss)
4113 timing reifyNode:node_modules/ghost-cli/node_modules/date-fns Completed in 7660ms
4114 http fetch GET 200 https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz 6115ms (cache miss)
4115 timing reifyNode:node_modules/ghost-cli/node_modules/lodash Completed in 7601ms
4116 http fetch GET 200 https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz 7545ms (cache miss)
4117 timing reifyNode:node_modules/ghost-cli/node_modules/rxjs Completed in 8876ms
4118 http fetch GET 200 https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz 7989ms (cache miss)
4119 timing reifyNode:node_modules/ghost-cli/node_modules/listr/node_modules/rxjs Completed in 9482ms
4120 http fetch GET 200 https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz 7985ms (cache miss)
4121 timing reifyNode:node_modules/ghost-cli/node_modules/inquirer/node_modules/rxjs Completed in 9483ms
4122 timing reify:unpack Completed in 9573ms
4123 timing reify:unretire Completed in 0ms
4124 timing build:queue Completed in 19ms
4125 info run yarn@1.22.19 preinstall node_modules/ghost-cli/node_modules/yarn :; (node ./preinstall.js > /dev/null 2>&1 || true)
4126 info run yarn@1.22.19 preinstall { code: null, signal: 'SIGINT' }
4127 timing reify:rollback:createSparse Completed in 3133ms
4128 timing reify:rollback:retireShallow Completed in 0ms
4129 timing command:install Completed in 294754ms
4130 verbose stack Error: command failed
4130 verbose stack     at ChildProcess.<anonymous> (/home/dh_iubb39/.nvm/versions/node/v18.9.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
4130 verbose stack     at ChildProcess.emit (node:events:513:28)
4130 verbose stack     at maybeClose (node:internal/child_process:1091:16)
4130 verbose stack     at Socket.<anonymous> (node:internal/child_process:449:11)
4130 verbose stack     at Socket.emit (node:events:513:28)
4130 verbose stack     at Pipe.<anonymous> (node:net:313:12)
4131 verbose pkgid yarn@1.22.19
4132 verbose cwd /home/dh_iubb39/my-ghost-blog
4133 verbose Linux 5.15.86-grsec-bnxt-focal+
4134 verbose node v18.9.0
4135 verbose npm  v8.19.1
4136 error path /home/dh_iubb39/.nvm/versions/node/v18.9.0/lib/node_modules/ghost-cli/node_modules/yarn
4137 error command failed
4138 error signal SIGINT
4139 error command sh -c -- :; (node ./preinstall.js > /dev/null 2>&1 || true)
4140 verbose exit 1
4141 timing npm Completed in 294875ms
4142 verbose unfinished npm timer reify 1703710919443
4143 verbose unfinished npm timer reify:build 1703710937736
4144 verbose unfinished npm timer build 1703710937737
4145 verbose unfinished npm timer build:deps 1703710937737
4146 verbose unfinished npm timer build:run:preinstall 1703710937756
4147 verbose unfinished npm timer build:run:preinstall:node_modules/ghost-cli/node_modules/yarn 1703710937756
4148 verbose code 1
4149 error A complete log of this run can be found in:
4149 error     /home/dh_iubb39/.npm/_logs/2023-12-27T21_01_59_325Z-debug-0.log

Actually making some progress here. Installed Ghost-CLI globally in a fresh Ghost folder. Created a ghost-new-installation folder to run ‘ghost install local’, and now getting:

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

Message: Command failed: yarn install --no-emoji --no-progress

yarn install v1.22.19


Debug Information:
    OS: Ubuntu, v20.04.6 LTS
    Node Version: v18.12.1
    Ghost-CLI Version: 1.25.3
    Environment: development
    Command: 'ghost install local'

Additional log info available in: /home/dh_iubb39/.ghost/logs/ghost-cli-debug-2023-12-27T21_45_24_354Z.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.

Also, when I cd back to the folder ghost was installed to run ‘ghost doctor’ I get:

Run `ghost doctor` again within a folder where Ghost was installed with Ghost-CLI.

Even though running ‘ghost --version’ in the same location returns:

Ghost-CLI version: 1.25.3

Thanks for contacting DreamHost Support. I’m sorry to hear you’re having
a hard time installing Ghost
No worries, my name is Pj and I will gladly assist you today!

Upon checking here, I was able to proceed a bit further with ghost
installation but found a roadblock in the yarn set up included on the
ghost.

Here’s the log from our end.

[pdx1-shared-a1-15]$ ghost install 5.75.2 local

Love open source? We're hiring JavaScript Engineers to work on Ghost
full-time.
[https://careers.ghost.org](https://careers.ghost.org/)

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

Message: Command failed: yarn install --no-emoji --no-progress

yarn install v1.22.19

Debug Information:
OS: Ubuntu, v20.04.6 LTS
Node Version: v18.12.1
Ghost-CLI Version: 1.25.3
Environment: development
Command: 'ghost install 5.75.2 local'

Additional log info available in:
/home/dh_iubb39/.ghost/logs/ghost-cli-debug-2023-12-28T01_46_46_419Z.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.
[pdx1-shared-a1-15]$ nano
/home/dh_iubb39/.ghost/logs/ghost-cli-debug-2023-12-28T01_46_46_419Z.log
[pdx1-shared-a1-15]$ yarn install --no-emoji --no-progress
yarn install v1.22.21
warning package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files
generated by tools other than Yarn. It is advised not to mix package
managers in order to avoid resolution inconsistencies caused by
unsynchronized lock files. To clear this warning, remove
package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 14.15s.
[pdx1-shared-a1-15]$ ghost install 5.75.2 local
Love open source? We're hiring JavaScript Engineers to work on Ghost
full-time.
[https://careers.ghost.org](https://careers.ghost.org/)

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

Message: Command failed: yarn install --no-emoji --no-progress

yarn install v1.22.19

Debug Information:
OS: Ubuntu, v20.04.6 LTS
Node Version: v18.12.1
Ghost-CLI Version: 1.25.3
Environment: development
Command: 'ghost install 5.75.2 local'

Additional log info available in:
/home/dh_iubb39/.ghost/logs/ghost-cli-debug-2023-12-28T01_49_46_949Z.log

Try running a ghost doctor to check your system for known issues.

You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for
troubleshooting.

Ghost tries to install yarn, and fails. But if I install Yarn manually,
that goes through, so it’s the Yarn version that Ghost includes that’s
causing an error.

Unfortunately, I’m afraid that this is something that needs to be checked
on the ghost forums to proceed.

You are welcome to contact us if you have any additional questions. We’d
be happy to help.

Thanks,
Pj C
The DreamHost Tech Support Team

Thinking I have to install node/yarn locally in the domain.com folder as root. I think it’s a permissions thing… will give it a shot.