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.

npm ERR! Failed at the node-rdkafka@2.6.1 install script.

See original GitHub issue

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]:
  • Node Version [e.g. 8.2.1]:
  • NPM Version [e.g. 5.4.2]:
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]:
  • node-rdkafka version [e.g. 2.3.3]:

[2019-05-15T08:27:09.922Z] > node-rdkafka@2.6.1 install /home/jenkins/workspace/re-abm_mock-services_PR-172-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka

[2019-05-15T08:27:09.922Z] > node-gyp rebuild

[2019-05-15T08:27:09.922Z]

[2019-05-15T08:27:12.102Z] make: Entering directory ‘/home/jenkins/workspace/re-abm_mock-services_PR-172-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka/build’

[2019-05-15T08:27:12.102Z] ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h

[2019-05-15T08:27:12.102Z] env: can’t execute ‘bash’: No such file or directory

[2019-05-15T08:27:12.102Z] Command failed: ./configure --prefix=/home/jenkins/workspace/re-abm_mock-services-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka/build/deps --libdir=/home/jenkins/workspace/re-abm_mock-services_PR-172-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka/build/deps

[2019-05-15T08:27:12.102Z] make: *** [deps/librdkafka.target.mk:13: deps/librdkafka/config.h] Error 1

[2019-05-15T08:27:12.102Z] make: Leaving directory ‘/home/jenkins/workspace/re-abm_mock-services_PR-172-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka/build’

[2019-05-15T08:27:12.102Z] gyp ERR! build error

[2019-05-15T08:27:12.102Z] gyp ERR! stack Error: make failed with exit code: 2

[2019-05-15T08:27:12.102Z] gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)

[2019-05-15T08:27:12.102Z] gyp ERR! stack at emitTwo (events.js:126:13)

[2019-05-15T08:27:12.102Z] gyp ERR! stack at ChildProcess.emit (events.js:214:7)

[2019-05-15T08:27:12.102Z] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

[2019-05-15T08:27:12.102Z] gyp ERR! System Linux 3.10.0-514.el7.x86_64

[2019-05-15T08:27:12.102Z] gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

[2019-05-15T08:27:12.102Z] gyp ERR! cwd /home/jenkins/workspace/re-abm_mock-services_PR-172-2B4NNI45YR4WY3JG27ZJ2KJYL3FFWLZFKXTPDTNOATSMO6JZF3YQ/node_modules/node-rdkafka

[2019-05-15T08:27:12.102Z] gyp ERR! node -v v8.9.1

[2019-05-15T08:27:12.102Z] gyp ERR! node-gyp -v v3.6.2

[2019-05-15T08:27:12.102Z] gyp ERR! not ok

[2019-05-15T08:27:12.775Z] npm WARN mock-services@0.0.1 No repository field.

[2019-05-15T08:27:12.775Z]

[2019-05-15T08:27:12.775Z] npm ERR! code ELIFECYCLE

[2019-05-15T08:27:12.775Z] npm ERR! errno 1

[2019-05-15T08:27:12.775Z] npm ERR! node-rdkafka@2.6.1 install: node-gyp rebuild

[2019-05-15T08:27:12.775Z] npm ERR! Exit status 1

[2019-05-15T08:27:12.775Z] npm ERR!

[2019-05-15T08:27:12.775Z] npm ERR! Failed at the node-rdkafka@2.6.1 install script.

[2019-05-15T08:27:12.775Z] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

[2019-05-15T08:32:21.830Z]

[2019-05-15T08:32:21.831Z] npm ERR! A complete log of this run can be found in:

[2019-05-15T08:32:21.831Z] npm ERR! /root/.npm/_logs/2019-05-15T08_27_12_680Z-debug.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iradulcommented, Apr 13, 2020

New version 2.8.0 was released few days ago with #759 merged 😉

Issues above seem to be a variety of stuff, not all related.

Exactly. Windows users should try with Visual Studio command prompt instead of the built-in one.

0reactions
sam-githubcommented, Apr 13, 2020

Apologies @iradul I didn’t notice the commit landed with a different hash.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm ERR! Failed at the integer@1.0.3 install script. #1308
So I get the error npm ERR! Failed at the integer@1.0.3 install script. when installing quick.db. This happens to other packages rarely. This...
Read more >
How to solve npm error "npm ERR! code ELIFECYCLE"
Failed at the voting_app@1.1.0 start script 'npm run server'. npm ERR! Make sure you have the latest version of node.js and npm installed....
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
prebuild-install - npm
A command line tool to easily install prebuilt binaries for multiple versions of Node.js & Electron on a specific platform.
Read more >
node-fetch - npm
A light-weight module that brings Fetch API to node.js. ... npm install node-fetch ... See the error handling document for more details.
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