-
-
Notifications
You must be signed in to change notification settings - Fork 815
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: Cannot find module node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node #906
Comments
The sqlite3 module works with Node.js v0.10.x, v0.12.x, v4.x, v5.x, v6.x and v7.x. |
@mapbox-machine @hyfgirl any support for current node v9.x?
|
Duplicate of #902 |
@wmertens I also have the problem, |
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>
.
|
Where should i run "npm rebuild" ? |
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…
…On Mon, Jun 18, 2018 at 7:58 AM Pushpendu Ghosh ***@***.***> wrote:
Where should i run "npm rebuild" ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#906 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlhWhr2RD3dhpfmyqP_X30_bGxgB8ks5t90GIgaJpZM4Qc2J4>
.
|
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 |
Same issue as well. Trying to solve on SO:
|
Another workaround that worked for me: and then:
|
Using node v11.6.0 instead of v8.11.0 worked for me |
Ugh....I'm having the same issue when trying to use Knex. It says it cannot find sqlite3 but is installed. |
@reya276 re-run npm/yarn install. You've changed your version of node between installation and execution. |
I was able to fix it, thanks.
Rey Angeles
…On Fri, Jan 18, 2019, 8:13 PM Kewde ***@***.*** wrote:
@reya276 <https://github.com/reya276> re-run npm/yarn install. You've
changed your version of node between installation and execution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#906 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYVflCWZYRpcYiyGR0Zs49We8uhX9aklks5vEnE5gaJpZM4Qc2J4>
.
|
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/.node-red/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/root/.node-red/node_modules/usb/src/binding --napi_version=2 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v59' (1) root@RPi3AP: |
running npm rebuild solved it for me |
Added more plateforms v8.x, v10.x, v11.x and v12.x. |
Did you fix this problem? |
@arnielcanillo the binaries for node-sqlite3 are downloaded a installation. If you've upgraded your version of Node then you have to re-install node-sqlite3. |
I had this issue on Mac. Followed these steps: # you need brew and nvm
brew install nvm
cd /var/www/gekko
#removed brew version of node
brew uninstall node
#removed all nvm versions of node
rm -rf ~/.nvm/versions/node/*
#stable version of node and nvm that works for gekko
nvm install 9.10.1
nvm alias default 9.10.1
#install gekko modules
npm install --only=production
cd exchange
npm install --only=production
cd ..
#remove sqlite, tulip and talib
rm -rf ./node_modules/talib*
rm -rf ./node_modules/tulind*
rm -rf ./node_modules/sqlite3*
#Install tulip, sqlite and talib versions that are compatible
npm install talib@1.0.4 --no-save
npm install tulind@0.8.10 --no-save
npm install sqlite3@4.0.0 --save |
Nice working for me |
@arunasank You the best! Thank you <3 |
|
Awesome. Works great! |
@arunasank Your Amazing ! Thanks Alot |
@wmertens Thanks, problem solved. |
@arunasank Thanks! |
Node this issue is still existing. I went through all workaround described in this thread. I didn't get any solution |
Same like @nikhilpk26 . OS: Linux Mint 20 (Ubuntu derivation) |
Hopefully this fixes the issue for @nikhilpk26 and @Miltonr87 I have: I had to run: sudo apt-get install sqlite3 libsqlite3-dev
npm rebuild And it worked for me. |
Thanks a lot @andrewshell , I forgot to inform here that I managed the issue with this solution and now |
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 |
I have the same issue with macOS BigSur: I can also reproduce it on Ubuntu 20.04.02: |
Using node v11.6.0 instead of v8.11.0 worked for me |
@miragekamran Why not use the supported versions 14 or 16? |
I use version 14+ and it just does not work 🤦♂️ |
It works for everyone else - did you try deleting node_modules and the ~/.npm cache? |
This worked well for me, i think it just upgraded to the latest compatible version for sqlite3! |
RESOLVED: |
It worked for me. But why/how? |
I couldn't make it work with the proposed solutions on Ubuntu 20.04 on WSL.
But using yarn I had no problems. |
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). |
I met the same error and tried a lot of ways but this work for me. |
Error: Cannot find module node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node
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
The text was updated successfully, but these errors were encountered: