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.
Can't install node-sqlite3 on Raspberry pi 3 running raspbian #933
I have a node application using sqlite3 running perfectly fine on windows. However, when I send it over to my pi and try downloading the packages, sqlite3 doesn't work.
I get the following errors when trying to install :
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp)
And the following when trying to run the program afterwards:
Error: Cannot find module '/var/Dash/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/Dash/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
Reacted by fatihyo, Marco H, Frederic Guilbault, Josh Peak, Jacek Gołębiewski, brnbs, Lachlan Harris, avicohen123, Mike Di Domenico, Edgar Aranda and 29 more
Reacted by Jacek Gołębiewski, Lachlan Harris, Skyler Bala, Artur Fiedorowicz, NotMoni, pi314x, SEGODIMO, phanmn, Maxime Nordier, Chris Dock and 5 more
Reacted by Viktor Strate Kløvedal, Jakub Blažej, pi314x, SEGODIMO, phanmn, Chris Dock, PanOvce, José Miguel, Krystian Wybranowski, nic and 3 more
Reacted by pi314x, SEGODIMO, phanmn, Chris Dock, José Miguel, Aaron Bell, Krystian Wybranowski, nic, Josh Beatty and Sergii Dobychyn
It worked for me once I installed the 64-bit (arm64) OS version. Couldn't get it to work with the 32-bit (arm).
See my comment on issue #906 for more details.
Activity
Nostradamos commentedon Jan 19, 2018
Did you try to build node-sqlite3 from source? Looks like there are no binaries for linux-arm.
https://github.com/mapbox/node-sqlite3#source-install
tunamayo04 commentedon Jan 19, 2018
Just tried it and it gives me the same error message.
tunamayo04 commentedon Jan 19, 2018
I tried installing sqlite3 instead of sqlite but now im stuck on the following:
tunamayo04 commentedon Jan 19, 2018
Ok, fixed it, thank you @Nostradamos. That was it 👍
wmertens commentedon Jan 21, 2018
So you can close this, right @zerox029 ?
jyy1082 commentedon Apr 24, 2018
@zerox029 Could you share how do you fix that? I have the same issue to install on ARM.

ardhi commentedon May 17, 2018
sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr
it works on my rpi3 - raspbian stretch lite
lectrician1 commentedon Aug 26, 2018
@zerox029 I'm having the same issue as @jyy1082. Could you please be more specific on how you solved this?
abmnukmr commentedon Apr 15, 2019
try with npm install sqlite3 --unsafe
caiowilson commentedon Dec 4, 2019
FWIW
not working with raspbian buster rpi 3
majdarov commentedon Dec 30, 2019
it works on my opi r1 - armbian 5.4.6-sunxi (Ubuntu bionic based Armbian for the Orange Pi R1 )
AviBueno commentedon May 26, 2023
It worked for me once I installed the 64-bit (arm64) OS version. Couldn't get it to work with the 32-bit (arm).
See my comment on issue #906 for more details.