JiangChang
JiangChang

Reputation: 57

ERROR: Cannot find module '.../node_modules/sqlite3/lib/binding/node-v14-linux-x64/node_sqlite3.node'

When I restarted my VPS and tried to start Ghost with 'npm start --production', I got this error. I tried to remove node_modules and reinstall them, but didn't fix it. I can only find node-v11-linux-x64 but not node-v14-linux-x64.

Any suggestion?

Upvotes: 3

Views: 5819

Answers (2)

Ivan Hristov
Ivan Hristov

Reputation: 3186

Try the following:

npm install sqlite3

It's possible that you switch nodejs version and therefore the binding has been left from the previous version (i.e. v0.10.). The error you are facing suggests that you have nodejs version v0.12.. If that's the case, you can try switching nodejs version with nvm for example.

Upvotes: 0

JT Turner
JT Turner

Reputation: 502

It might be the node version. You might need to add the node 4.x ppa.

https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm-for-ubuntu-14-04-lts

Upvotes: 1

Related Questions