TryGhost / node-sqlite3

SQLite3 bindings for Node.js
BSD 3-Clause "New" or "Revised" License
6.2k stars 813 forks source link

3.1.1 seems to not work with node 4 #581

Closed tjwebb closed 2 years ago

tjwebb commented 8 years ago

The sqlite3 module works with Node.js v0.10.x, v0.12.x, v4.x, and v5.x.

I can't get any single version of sqlite3 to work with both node 4 and node 5. Is this a known issue?

hoichong commented 8 years ago

I have the same issue, node-sqlite3 does not work with Node v4.2.4

shotor commented 8 years ago

I have a similar issue when trying to use Knex 0.8/0.9 with Sqlite3 3.1.1 on node 4.2.4:

31mKnex: run
$ npm install sqlite3 --save
Error: Cannot find module '/home/shotor/Projects/playground/electron-react-boilerplate/node_modules/sqlite3/lib/binding/node-v47-linux-x64/node_sqlite3.node'

I checked the folder and I only have the v46 binding.

Any idea how to get this v47 binding?

laispace commented 8 years ago

@shotor Try sudo:

sudo npm install sqlite3

It works for me on Mac.(node@4.2.4 and sqlite3@3.1.1)

shotor commented 8 years ago

@laispace Thanks, but no dice unfortunately. Still only see a v46 version.

zzolo commented 8 years ago

I am having the same issue.

For reference, this is the error I get: Error: Cannot find module '/ ... /node_modules/sqlite3/lib/binding/node-v47-darwin-x64/node_sqlite3.node'

node version v5.7.0

daniellockyer commented 2 years ago

Please try with newer versions of node-sqlite3 🙂