wtfaremyinitials / osa-imessage

Send and receive iMessages with nodejs
MIT License
324 stars 54 forks source link

cannot find module error #30

Open ghost opened 4 years ago

ghost commented 4 years ago

the error is: Error: Cannot find module '/Users/vektrix/node_modules/sqlite3/lib/binding/node-v79-darwin-x64/node_sqlite3.node'

the require stack is:

    '/Users/vektrix/node_modules/sqlite3/lib/sqlite3.js',
    '/Users/vektrix/node_modules/sqlite/main.js',
    '/Users/vektrix/node_modules/osa-imessage/lib/messages-db.js',
    '/Users/vektrix/node_modules/osa-imessage/index.js',
    '/Users/vektrix/iMessage/index.js'
  ]
3DJakob commented 3 years ago

Adding "postinstall": "electron-builder install-app-deps", to my package JSON, running npm install electron-builder --save-dev and then finally running npm run postinstall solved this issue for me. Hope this is helpful!

smohanty92 commented 2 years ago

Any update on this? I'm still having issues with getting the whole electon/yarn thing working. Would just like to use npm to get this installed. Ty