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.
gyp: Undefined variable napi_build_version in binding.gyp while trying to load binding.gyp #1359
I was having the same issue in mac.
If you are on mac
Try upgrading to latest node version and latest npm version
And then run
npm i -g node-gyp@latest && npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js"
It looks like you need at least node 10.23.0 as noted in this issue: nodejs/node-gyp#2224
In that issue, it mentions that the fix was never backported to node 10.x. A little more digging indicates that node 10.23.0 was the version it was backported to, as seen in this PR: nodejs/node#27835
Activity
baobao12356 commentedon Jul 17, 2020
各位大佬有遇到过得麻烦解答一下,谢谢
marcosroriz commentedon Sep 4, 2020
I'm having the same issue. Anyone know how to fix this?
soumen-saniel commentedon Sep 15, 2020
I was having the same issue in mac.
If you are on mac
Try upgrading to latest node version and latest npm version
And then run
npm i -g node-gyp@latest && npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js"
Niek commentedon Oct 29, 2020
Running
npm i node-gyp@latestresolved the issue for me.i-chaochen commentedon Feb 4, 2021
Same issue here.
electron cannot find sqlite3 module
tried many ways to rebuild sqlite3 but all failed
joshuanathanson commentedon Apr 28, 2021
It looks like you need at least node
10.23.0as noted in this issue: nodejs/node-gyp#2224In that issue, it mentions that the fix was never backported to node 10.x. A little more digging indicates that node 10.23.0 was the version it was backported to, as seen in this PR: nodejs/node#27835
daniellockyer commentedon Apr 15, 2022
Would you be able to try with v5.0.3? 🙂
w1i2n3d4 commentedon Nov 7, 2024
请问如何解决这个问题,我最近也遇到了