-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Could not locate the bindings file #44
Comments
it looks like a bug with the bindings module. I suggest opening up an issue in that repository. |
I'm having this error while using better-sqlite on windows as well. In my case, I'm using it inside ubuntu console within windows. @sevenqi did you file an issue with bindings module? Would like to see this get resolved quickly 😄 . /home/jp/crossroads/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /home/jp/crossroads/node_modules/better-sqlite3/build/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/build/Release/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/out/Debug/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/Debug/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/out/Release/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/Release/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/build/default/better_sqlite3.node
→ /home/jp/crossroads/node_modules/better-sqlite3/compiled/6.11.0/linux/x64/better_sqlite3.node
at bindings (/home/jp/crossroads/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/home/jp/crossroads/node_modules/better-sqlite3/lib/database.js:5:38)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/jp/crossroads/node_modules/better-sqlite3/index.js:2:18)
at Module._compile (module.js:570:32) |
I tried to use electron-rebuild rebuild it, the arguments use -v 1.6.3(this version maybe need to change if your system isn't win7), It's successful |
Please leave it open, I never used electron here so still applicable to me :) |
want +1 /mnt/www/zhigou/api.zhigou/node_modules/_bindings@1.3.0@bindings/bindings.js:96 Error: Could not locate the bindings file. Tried: |
my app no longer runs thanks to
|
@jimmont your issue is different from the other ones in this thread. Yours looks like a problem with npm. It's failing to install the |
|
electron version 5.6.0 "Error: Cannot find module 'better-sqlite3' and when i use -- import MailsyncProcess from '../mailsync-process' -- in application.es6 file. Error generate :- Mailspring could find the mailsync process. If you're building Mailspring from source, make sure mailsync.tar.gz has been downloaded and unpacked in your working copy. |
Same issue here. |
Hi,
I installed better-sqlite3 without any issue.
But on : var Database = require('better-sqlite3') I have this error
win7 x64
electron 1.6.11
node 6.11.0
npm 3.10.10
App threw an error during load
Error: Could not locate the bindings file. Tried:
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\build\bett er_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\build\Debu g\better_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\build\Rele ase\better_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\out\Debug\ better_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\Debug\bett er_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\out\Releas e\better_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\Release\be tter_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\build\defa ult\better_sqlite3.node
→ D:\project\nodeC\node_modules_better-sqlite3@3.1.1@better-sqlite3\compiled\7 .4.0\win32\x64\better_sqlite3.node
at bindings (D:\project\nodeC\node_modules_bindings@1.2.1@bindings\bindings .js:88:9)
at Object. (D:\project\nodeC\node_modules_better-sqlite3@3.1.1@b etter-sqlite3\lib\database.js:5:38)
at Object. (D:\project\nodeC\node_modules_better-sqlite3@3.1.1@b etter-sqlite3\lib\database.js:56:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
The text was updated successfully, but these errors were encountered: