Home / GitHub Page

Cannot find module: node_sqlite3.node


#1

Hi, I tried to install Joplin terminal app on Mac OSX. After I installed it via brew, I got the following error when I ran the app.

Error: Cannot find module ‘/usr/local/Cellar/joplin/1.0.107/libexec/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/node-v57-darwin-x64/node_sqlite3.node’

I checked the directory and found that my sqlite3 binding is node-v64-darwin-x64. How can I fix this error? Thanks!


#2

i would suggest to install the missing node module but it looks like a bug with the macos packaging


#3

Try running npm run pack


#4

I figured out the issue. Looks like Joplin installed node 10 as a dependency but my current node was version 8 under nvm. Is it possible to specify the path to node in Joplin?


#5

There are several issues about this on the forum but I forgot how it was solve. Maybe search for “nvm” to see how other people figured it out.