Skip to content
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/napi-v3-darwin-arm64/node_sqlite3.node' #1513

Closed
jialinghui opened this issue Oct 18, 2021 · 12 comments

Comments

@jialinghui
Copy link

Error: Cannot find module '/node_modules/sqlite3/lib/binding/napi-v3-darwin-arm64/node_sqlite3.node'
image

@chenpx976
Copy link

+1

@lmarcelocc
Copy link

@jialinghui did you got any solution for your issue ? Have exactly the same.

@jialinghui
Copy link
Author

@jialinghui did you got any solution for your issue ? Have exactly the same.
You can try
npm install --target_arch=arm64

@lmarcelocc
Copy link

Thanks @jialinghui

After running npm install --target_arch=arm64 I went with a new error:
/node_modules/@mapbox/mbtiles/node_modules/sqlite3/lib/binding/napi-v3-darwin-x64/node_sqlite3.node" has bad ELF magic: cffaedfe

Let me know if you had this one as well and found any solution :)

@bitbw
Copy link

bitbw commented Jan 5, 2022

I have the same problem in electron product

pageage.json

{
"sqlite3": "^5.0.2",
"electron": "^12.0.2",
"vue-cli-plugin-electron-builder": "^2.1.1"
}

@tonychub
Copy link

tonychub commented Mar 9, 2022

I have the same issue. :(

@MrTob
Copy link

MrTob commented Mar 11, 2022

same here

@chenpx976
Copy link

#1538 (comment)

@conglp90
Copy link

Same issue, i think in last day it work. May be by mac os update?

@spamshaker
Copy link

Same here

@sc00
Copy link

sc00 commented Apr 5, 2022

Same issue in vue electron project

@daniellockyer
Copy link
Member

Would you be able to try with sqlite3 v5.0.3? It should fix a lot of the build issues 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants