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

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

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.