Is anyone else having problems with Sqlite3?


#1

Hi everyone! I have been developing things on glitch for a while now, and today I ran into a problem with the Sqlite3 module. Has anyone else had this problem?

Error: Cannot find module ‘/app/node_modules/sqlite3/lib/binding/node-v51-linux-x64/node_sqlite3.node’

Thanks in advance! :slight_smile:


#2

Just run in console npm install


#3

I already did that and I’m getting the same error… :confused:


#4

This usually happens after changing the node version.
Make sure that you have a sqlite3 in dependencies in package.json
Then try npm rebuild or npm install sqlite3 --build-from-source


#5

Don’t worry about it, I fixed it by installing the package in via the terminal. Thanks for your help anyway! :smiley: