node-gyp fails: /root/.node-gyp/5.0.0/common.gypi not found
See original GitHub issueI first run ‘npm install --ignore-scripts’, then ‘npm rebuild’. It fails to build sqlite3, but here people had the same problem with another project: https://botbot.me/freenode/webtorrent/2015-11-01/?tz=America/Los_Angeles
Here is log:
> sqlite3@3.1.1 install /usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
gyp: /root/.node-gyp/5.0.0/common.gypi not found (cwd: /usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/sqlite3) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System FreeBSD 10.2-STABLE
gyp ERR! command "/usr/local/bin/node" "/usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/sqlite3/lib/binding/node-v47-freebsd-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/sqlite3/lib/binding/node-v47-freebsd-x64" "--python=/usr/local/bin/python2"
gyp ERR! cwd /usr/ports/www/etherpad-lite/work/etherpad-lite-1.5.7/node_modules/ep_etherpad-lite/node_modules/sqlite3
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
common.gypi not found error in node.js - Stack Overflow
gypi that I found in the github repository into the file and saved it and closed it and ran "node-gyp configure". This is...
Read more >node-gyp - npm
Node.js native addon build tool. Latest version: 9.3.1, last published: 2 days ago. Start using node-gyp in your project by running `npm i ......
Read more >Solving common issues with node-gyp - LogRocket Blog
Many node-gyp issues are actually issues with the toolchain used for building add-on code. We'll categorize these issues to offer solutions.
Read more >Fix broken 'node-gyp' issue for Mac OS | by Fernando De Freitas
This issue is usually caused because a node-gyp config file called common.gypi is not set up for your current Mac OS version. Just...
Read more >[SOLVED] Node-gyp error, node_modules does not get ...
Hello, I am having an issue which is preventing me from doing the course on Windows 10 I am getting the node-gyp error....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please upgrade node-gyp https://github.com/nodejs/node-gyp/releases
Hey guys working with
node-gyp -v v3.6.2
onnode -v v13.9.0
on Ubuntu 18.04…running into a similar issue 🤷♂️stack trace