Hi everyone,
I’m a newbie to Ghost and node.js and while experienced at the command line I am a bit rusty and around 10 years out of date. Apologies in advance for any dumb questions.
I am trying to install Ghost locally on OSX and have some failures. I think it may be due to having conflicting Node versions installed. I’ll run you through the steps I’ve taken and the verbose output, and hopefully someone will be able to advise how I can get out of this mess I have created!
Running OSX 10.15.4 and do not have XCode installed.
Following the instructions in the Ghost Docs and Ghost for Beginners, I first endeavoured to install Node, found Yarn wasn’t installed, so added Homebrew, then Yarn, then SQLite when the process stalled. Specifically:
- First installed the Current Version of Node (v13.12.0) as OSX wouldn’t open the 12.16.1 installer (OSX couldn’t verify the package error message).
- Installed Ghost CLI then ran ghost install local, receiving an error that this version of Node isn’t supported (my mistake, I didn’t read the docs)
- Installed node 12.16.1 without uninstalling 13.12.0
- Ghost CLI and install local worked when I ran it again, but would get stuck trying to do something with Yarn, so…
- I installed Homebrew so I could [install Yarn following the steps on each tools respective website.
- Deleted everything in the Ghost folder from the half-created install tried in Step 4, and ran ghost install local --verbose
- The script seemed to be getting stuck installing SQLite, so I installed that via Homebrew last night.
Now, today when I run ghost install local --verbose it stops here:
[13:23:58] → verbose 37.359 node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@10.19.0 | darwin | x64
*node-pre-gyp WARN Using request for node-pre-gyp https download *
node-pre-gyp info check checked for “/Users/kate/Documents/Ghost/versions/3.12.1/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node” (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-darwin-x64.tar.gz
node-pre-gyp http 200 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-darwin-x64.tar.gz
node-pre-gyp info install unpacking node-v64-darwin-x64/node_sqlite3.node
node-pre-gyp info tarball done parsing tarball
[sqlite3] Success: “/Users/kate/Documents/Ghost/versions/3.12.1/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node” is installed via remote
node-pre-gyp info ok
When I open a new terminal and try ghost doctor or ghost config, it correctly advises that Ghost isn’t installed (makes sense since it has stalled at the above)
In short, half knowing what I’m doing has created a right mess and I’m unsure how to get out of it now - it seems deleting everything to start afresh is quite hard as well. I’ve tried using Brew and NVM to uninstall node v13.x but that doesn’t work either.
Has anyone got suggestions for what on earth I’ve done here and how I can dig myself out?!
Many thanks in advance.