You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
But i have node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node
Below the node and npm version that i'm using. Please help me to get rid of this issue
node version: v8.7.0
npm version: 5.4.2
Reacted by Jon Knapp, Michael Cox, CJ, Charles Ramos, Bruno Lemos, Marcel Fitzner, Lucas Henrique Lopes Costa, David Johnston, Nicolai Søborg, Thomas Gauvin and 6 more
@wmertens I also have the problem,
Error: Cannot find module node_modules\sqlite3\lib\binding\node-v54-win32-x64\node_sqlite3.node
but I have node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node
node: v6.9.4
npm: 3.10.10
On Tue, Mar 20, 2018, 2:47 AM zjuchujinjin, ***@***.***> wrote:
I also have the problem,
Error: Cannot find module
node_modules\sqlite3\lib\binding\node-v54-win32-x64\node_sqlite3.node
but I have
node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node
node: v6.9.4
npm: 3.10.10
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#906 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlqxrJQZDHlVRcoCsv8fskikLgYhFks5tgF-ugaJpZM4Qc2J4>
.
Reacted by John Dunne, Randall Kent, Vyacheslav, swa, Dmitry Demidovsky, Vaibhav Bhuva, alettaklopper2310, Vaughn Walters, Rajeshkanna V, Chanu De Silva and 86 more
Reacted by Jason Howmans, lolpez, Mat, Neeeksonja, Abdelkarim Ben Hamida, Joah Peng, Vladimir Andrienko, Paul Ionescu, Dancebunny98, moom0o and 16 more
Reacted by Mark Fonte, YSB, Grant Hernandez, Bosch Carl, Victor Peralta, 污斑兔, Caio Jhonny, Tony Song, Alex Ferreira de Souza, Frank Kilkelly and 10 more
Reacted by Neeeksonja and Kurt
Reacted by Tony Song, siiiiilvio, Frank Kilkelly, Sijie Shi, TheShadowGamer, arpitsharma007, Mullot, Lucas Ernesto Kindinger, Mohsen, leonardopellizzon and 9 more
In your app folder. Also, this is not really an issue with this project,
but with npm not telling you that the node ABI changed when you update
NodeJS, so I propose you close this issue…
Besides deleting package-lock.json the other workaround here is to upgrade to node-sqlite3@4.0.2, which should avoid this problem since it no longer uses bundledDependencies which trigger problems in recent npm versions > npm@5.6.x. refs mapbox/node-pre-gyp#403
Another workaround that worked for me: npm uninstall sqlite3
and then:
npm install --save sqlite3
Reacted by Lava Kumar Dukanam, mrsoliman, Jet, Bit Wombat, Nickolas Stricker, Brendan Lynch, Rirbeiro, Imon Ovbude, Maxim, Kamil Oleś and 79 more
Reacted by Roamer S., Frank Hale, Gbots Developer, Kamil Oleś, moom0o, Agasti Kishor Dukare , Christopher MILAZZO, Renato Dubbs, waqasrajab, Ehmed and 10 more
Reacted by Ibrahim, r1ped, TeamPixies, Alex Alves Cardoso, madhukar11, Artsiom Praneuski and Marwan Ansari
Reacted by Kamil Oleś, Michael Sacks, Renato Dubbs, James, Brandon, Akash Gupta, Ibrahim, Yash Chaudhary, TeamPixies, Alex Alves Cardoso and 2 more
Reacted by T.Shin, Michael Sacks, Renato Dubbs, James, Duc Filan, Radovan Olujic, Lucas Gabriel dos Santos, Ibrahim, Mohammad Jahanbakhsh, TeamPixies and 8 more
Reacted by Michael Sacks, Renato Dubbs, Duc Filan, Osman Demirci, David Kuseh, Ibrahim, TeamPixies, Alex Alves Cardoso, madhukar11, Esteban and 3 more
Reacted by Michael Sacks, Renato Dubbs, Ibrahim, Alex Alves Cardoso, madhukar11, randymcmillan and Dipanshu Singh
Thanks a lot @andrewshell , I forgot to inform here that I managed the issue with this solution and now
everything is ok! No old versions of Node needed to be used. Thanx again!
I have the same issue with macOS BigSur:
❯ npm --version
7.6.0
❯ node -v
v15.1.0
I can also reproduce it on Ubuntu 20.04.02: Error: Cannot find module '../node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node' Require stack: ../node_modules/sqlite3/lib/sqlite3-binding.js ../node_modules/sqlite3/lib/sqlite3.js
❯ npm --version
7.7.6
❯ node -v
v15.14.0
RESOLVED:
I had a yarn.locker file in my project. I deleted that file and rebuild the project and it worked for me.
Steps:
1 . Delete yarn.locker
2. docker build
3. docker run
run npm rebuild …
On Tue, Mar 20, 2018, 2:47 AM zjuchujinjin, @.***> wrote: I also have the problem, Error: Cannot find module node_modules\sqlite3\lib\binding\node-v54-win32-x64\node_sqlite3.node but I have node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node node: v6.9.4 npm: 3.10.10 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#906 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AADWlqxrJQZDHlVRcoCsv8fskikLgYhFks5tgF-ugaJpZM4Qc2J4 .
TL;DR: Solved on Raspberry Pi 3 by installing the 64 bit OS image.
Turns out that the default OS on the Raspberry Pi Imager is 32-bit (ARCH=arm). After selecting the 64-bit image (ARCH=arm64) all issues were solved because node-sqlite3's release includes napi-v6-linux-glibc-arm64.tar.gz out of the box, so no need to build locally (which got stuck forever on 100% CPU utilization).
Activity
heyfgirl commentedon Nov 30, 2017
The sqlite3 module works with Node.js v0.10.x, v0.12.x, v4.x, v5.x, v6.x and v7.x.
damianobarbati commentedon Dec 10, 2017
@mapbox-machine @hyfgirl any support for current node v9.x?
wmertens commentedon Dec 26, 2017
Duplicate of #902
chujinjin101 commentedon Mar 20, 2018
@wmertens I also have the problem,
Error: Cannot find module node_modules\sqlite3\lib\binding\node-v54-win32-x64\node_sqlite3.node
but I have node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node
node: v6.9.4
npm: 3.10.10
wmertens commentedon Mar 20, 2018
memePushpendu commentedon Jun 18, 2018
Where should i run "npm rebuild" ?
wmertens commentedon Jun 18, 2018
springmeyer commentedon Jul 16, 2018
Besides deleting package-lock.json the other workaround here is to upgrade to node-sqlite3@4.0.2, which should avoid this problem since it no longer uses
bundledDependencieswhich trigger problems in recent npm versions > npm@5.6.x. refs mapbox/node-pre-gyp#403hanpari commentedon Jul 30, 2018
Same issue as well. Trying to solve on SO:
https://stackoverflow.com/questions/51587843/how-to-add-sqlite3-dependency-to-vs-code-extension
arunasank commentedon Nov 13, 2018
Another workaround that worked for me:
npm uninstall sqlite3and then:
npm install --save sqlite3TimDorand commentedon Jan 2, 2019
Using node v11.6.0 instead of v8.11.0 worked for me
reya276 commentedon Jan 18, 2019
Ugh....I'm having the same issue when trying to use Knex. It says it cannot find sqlite3 but is installed.
kewde commentedon Jan 19, 2019
@reya276 re-run npm/yarn install. You've changed your version of node between installation and execution.
reya276 commentedon Jan 19, 2019
15 remaining items
andrewshell commentedon Dec 11, 2020
Hopefully this fixes the issue for @nikhilpk26 and @Miltonr87
I have:
Ubuntu 20.04.1 LTS
Node v14.15.1
Npm 6.14.8
I had to run:
And it worked for me.
Miltonr87 commentedon Dec 11, 2020
Thanks a lot @andrewshell , I forgot to inform here that I managed the issue with this solution and now
everything is ok! No old versions of Node needed to be used. Thanx again!
i-chaochen commentedon Feb 4, 2021
Same issue here, but I already have that file in my node_modules folder
Tried many ways, (i.e., to rebuild node_sqlite3) and all failed.
macOS BigSur
❯ npm --version
7.5.2
❯ node -v
v10.15.1
marcoguastalli commentedon Apr 14, 2021
I have the same issue with macOS BigSur:
❯ npm --version
7.6.0
❯ node -v
v15.1.0
I can also reproduce it on Ubuntu 20.04.02:
Error: Cannot find module '../node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node' Require stack: ../node_modules/sqlite3/lib/sqlite3-binding.js ../node_modules/sqlite3/lib/sqlite3.js❯ npm --version
7.7.6
❯ node -v
v15.14.0
miragekamran commentedon Jul 26, 2021
Using node v11.6.0 instead of v8.11.0 worked for me
wmertens commentedon Jul 27, 2021
@miragekamran Why not use the supported versions 14 or 16?
MegaNoam commentedon Aug 22, 2021
I use version 14+ and it just does not work 🤦♂️
wmertens commentedon Aug 22, 2021
It works for everyone else - did you try deleting node_modules and the ~/.npm cache?
andyrobert3 commentedon Dec 11, 2021
This worked well for me, i think it just upgraded to the latest compatible version for sqlite3!
akshayjain-tmdc commentedon Apr 18, 2022
RESOLVED:
I had a yarn.locker file in my project. I deleted that file and rebuild the project and it worked for me.
Steps:
1 . Delete yarn.locker
2. docker build
3. docker run
saifookhan commentedon May 11, 2022
It worked for me. But why/how?
dzid26 commentedon May 1, 2023
I couldn't make it work with the proposed solutions on Ubuntu 20.04 on WSL.
But using yarn I had no problems.
yarn add sqlite3AviBueno commentedon May 26, 2023
TL;DR: Solved on Raspberry Pi 3 by installing the 64 bit OS image.
Turns out that the default OS on the Raspberry Pi Imager is 32-bit (ARCH=arm). After selecting the 64-bit image (ARCH=arm64) all issues were solved because node-sqlite3's release includes napi-v6-linux-glibc-arm64.tar.gz out of the box, so no need to build locally (which got stuck forever on 100% CPU utilization).
swen-chan commentedon Jul 12, 2024
I met the same error and tried a lot of ways but this work for me.
npm rebuildpzHong0618 commentedon Aug 20, 2025
我也是遇到了这个问题,我的环境如下:
Nodejs 10.15.3
sqlite3 5.0.0
我是把node_modules\sqlite3\lib\sqlite3-binding.js里面的binding_path 的取值修改如下就解决了
var binding_path = process.env.NODE_ENV === 'production'
? binary.find(path.resolve(path.join(process.execPath, '../package.json')))
: binary.find(path.resolve(path.join(__dirname, '../package.json')));