osa-imessage icon indicating copy to clipboard operation
osa-imessage copied to clipboard

cannot find module error

Open ghost opened this issue 4 years ago • 2 comments

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'
  ]

ghost avatar Apr 14 '20 10:04 ghost

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!

3DJakob avatar Jan 18 '21 12:01 3DJakob

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

smohanty92 avatar Jul 26 '22 16:07 smohanty92