-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
2022 Error: Could not locate the bindings file. #866
Comments
Try installing XCode and open it then run again the npm/yarn install process @broccolihighkicks |
I ran into this issue on trying to run a file that is the result of cd node_modules/better-sqlite3
npm run build-release
# or `yarn build-release`
# move back to the source folder
cd ..
cd ..
# copy the folder itself
cp -r node_modules/better-sqlite3/build/Release/ build/ |
@JoshuaWise What piece of code tries to find the binding ? What obstacle prevents from patching it to try more in |
@houd1ni The binding is found by the |
For me this worked: cd node_modules/better-sqlite3
npm run build-release
cd .. |
I solved it by installing |
I get this error after install:
I noticed that
node-v108-darwin-arm64
is not in the release assets: https://github.com/WiseLibs/better-sqlite3/releases/tag/v7.6.2Also, the lookup folders above are looking in my projects folder
/x/
not/x/node_modules/better-sqlite3/
.Possible fix:
ln -s node_modules/better-sqlite3/build ./build
seems to avoid this issue.Can you patch better-sqlite3 to change look up paths to include `/x/node_modules/better-sqlite3/``?
Similar issues from 2018 that are closed.
Versions
Mac M1.
Node v18.7.0.
yarn.lock
tree node_modules/better-sqlite3/build
The text was updated successfully, but these errors were encountered: