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.

Build error when npm install

See original GitHub issue

My ros2 is built from source, https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos I use the step in README, when I run npm install:

CXX(target) Release/obj.target/rclnodejs/src/addon.o CXX(target) Release/obj.target/rclnodejs/src/executor.o …/src/executor.cpp:17:10: fatal error: rcl/error_handling.h: No such file or directory #include <rcl/error_handling.h> ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. rclnodejs.target.mk:124: recipe for target ‘Release/obj.target/rclnodejs/src/executor.o’ failed make: *** [Release/obj.target/rclnodejs/src/executor.o] Error 1 make: Leaving directory ‘/home/fuzhiyang/github/rclnodejs/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12) gyp ERR! System Linux 4.15.0-42-generic gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /home/fuzhiyang/github/rclnodejs gyp ERR! node -v v11.4.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! rclnodejs@0.7.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the rclnodejs@0.7.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
minggangwcommented, Dec 29, 2018

@yfzcopy0702 @eeyang92 If this issue in irreproducible, I am going to close it. And please wait for the patch which will fix #437, thanks!

0reactions
minggangwcommented, Jan 4, 2019

v0.8.0 has just released, now you can enjoy your apps based on Crystal Clemmys 😆

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install error from the terminal - Stack Overflow
Running just "npm install" will look for dependencies listed in your package.json. The error you're getting says that you don't have a ...
Read more >
Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found ... Build Node yourself and install it somewhere writable with lots of space.
Read more >
NPM install error - Material Design for Bootstrap
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >
How to solve npm ERR! code 1 when running npm install
Fix npm error code 1 by updating your dependencies · Update one package version in package.json file · Then run npm install ·...
Read more >
Step by step solution for npm install error - M220JS - MongoDB
Delete the package-lock. · If you see a lot of warning & error messages related to npm-gyp, run npm rebuild & this should...
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