http://blog.paulbird.co/Ghost 0.5Tue, 14 Aug 2018 21:49:31 GMT60If you're anything like me, and heard that the latest version of node was now stable, then perhaps you were quick to upgrade to the latest version like I was.

To my dismay, I quickly discovered when trying to run Ghost locally so that I could try my hand at developing my own ghost theme that it wouldn't install. First sqlite3 wouldn't installed, damn. I decided this was something that was wrong with sqlite3 and not me. I'd even tried force building it but it didn't work. I decided i'd leave it a week and tried again later. A week later, sqlite3 installed when I run npm install only to find that now Ghost wouldn't let me run it because it requires node version 0.10.0.

I figure this is something the Ghost team will fix soon, but if you're impatient like me then you can't wait that long. This is a super simple fix.

Package.json

If you didn't discover this yourself it's so simple it hurts. Look in the package.json it should look something like the following. All you need to do is look for the part where it mentions engines. It should say that it is looking for version 0.10.0.

{
"engines": {
"node": "~0.10.0"
}
}

When Ghost starts up using npm start it runs a load of checks, for us this means it checks explicitly for version 0.10.0 or less. All we needed to do was tell it that it's allowed to use node version 0.12.0, and then node will start in development mode ready for all our Ghost developing needs next time we run npm start.

{
"engines": {
"node": "~0.12.0"
}
}

Currently it looks like this little change hasn't made any breaks or changes.