Search code examples
linuxnode.jsubuntusqliteghost-blog

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?


Solution

  • 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