question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-gyp fails: /root/.node-gyp/5.0.0/common.gypi not found

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cclausscommented, Feb 27, 2020
0reactions
luiscarbonellcommented, Feb 27, 2020

Hey guys working with node-gyp -v v3.6.2 on node -v v13.9.0 on Ubuntu 18.04…running into a similar issue 🤷‍♂️

stack trace

gyp: /usr/include/nodejs/common.gypi not found
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.3.0-40-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/codemonk/Downloads/node-opengl
gyp ERR! node -v v13.9.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found