Giter VIP home page Giter VIP logo

Comments (10)

sevenqi avatar sevenqi commented on July 21, 2024 1

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
@agauniyal you can try if you used it in electron apps too.

from better-sqlite3.

JoshuaWise avatar JoshuaWise commented on July 21, 2024

it looks like a bug with the bindings module. I suggest opening up an issue in that repository.

from better-sqlite3.

agauniyal avatar agauniyal commented on July 21, 2024

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)

from better-sqlite3.

agauniyal avatar agauniyal commented on July 21, 2024

Please leave it open, I never used electron here so still applicable to me :)

from better-sqlite3.

loufq avatar loufq commented on July 21, 2024

want +1

/mnt/www/zhigou/api.zhigou/node_modules/_bindings@1.3.0@bindings/bindings.js:96
throw err
^

Error: Could not locate the bindings file. Tried:
β†’/node_modules/[email protected]@better-sqlite3/build/better_sqlite3.node
β†’node_modules/[email protected]@better-sqlite3/build/Debug/better_sqlite3.node
β†’node_modules/[email protected]@better-sqlite3/build/Release/better_sqlite3.node
β†’node_modules/[email protected]@better-sqlite3/out/Debug/better_sqlite3.node
β†’ node_modules/[email protected]@better-sqlite3/Debug/better_sqlite3.node
β†’ node_modules/[email protected]@better-sqlite3/out/Release/better_sqlite3.node
β†’ node_modules/[email protected]@better-sqlite3/Release/better_sqlite3.node
β†’ node_modules/[email protected]@better-sqlite3/build/default/better_sqlite3.node

from better-sqlite3.

jimmont avatar jimmont commented on July 21, 2024

my app no longer runs thanks to npm install --save better-sqlite3@latest which writes to package.json "better-sqlite3": "^4.0.2",

$ uname -a
Linux raspberrypi 4.9.40+ #1022 Sun Jul 30 11:11:04 BST 2017 armv6l GNU/Linux
$ node -v
v8.5.0
$ npm -v
5.4.1
$ LZZ_COMPAT=1 npm install --save better-sqlite3@latest

Error: Cannot find module 'bindings'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/path/to/node_modules/better-sqlite3/lib/database.js:5:19)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)

from better-sqlite3.

JoshuaWise avatar JoshuaWise commented on July 21, 2024

@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 bindings module.

from better-sqlite3.

thijssmudde avatar thijssmudde commented on July 21, 2024
Γ—
Error: Could not locate the bindings file. Tried:
 β†’ /build/better_sqlite3.node
 β†’ /build/Debug/better_sqlite3.node
 β†’ /build/Release/better_sqlite3.node
 β†’ /out/Debug/better_sqlite3.node
 β†’ /Debug/better_sqlite3.node
 β†’ /out/Release/better_sqlite3.node
 β†’ /Release/better_sqlite3.node
 β†’ /build/default/better_sqlite3.node
 β†’ /compiled/version/platform/arch/better_sqlite3.node

from better-sqlite3.

satishgupta4s avatar satishgupta4s commented on July 21, 2024

electron version 5.6.0
npm version 5.6.0
node version

"Error: Cannot find module 'better-sqlite3'
Error: Cannot find module 'electron-spellchecker'

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.

from better-sqlite3.

ArielSaldana avatar ArielSaldana commented on July 21, 2024

Same issue here.

from better-sqlite3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.