node-rdkafka
node-rdkafka copied to clipboard
Build error when installing the module
Environment Information
- OS : Mac Ventura 13.4
- Node Version : 18.18.2
- NPM Version : 9.8.1
- C++ Toolchain : 14.0.3 (clang-1403.0.22.14.1)
- node-rdkafka version : 2.18.0
Steps to Reproduce
when try to install node-rdkafka, it occurs build issue.
npm ERR! make: *** [Release/obj.target/node-librdkafka/src/binding.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:
make
failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/vlad/.nvm/versions/node/v18.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) npm ERR! gyp ERR! System Darwin 22.5.0 npm ERR! gyp ERR! command "/Users/vlad/.nvm/versions/node/v18.18.2/bin/node" "/Users/vlad/.nvm/versions/node/v18.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/vlad/Documents/kafka-project/node_modules/kafka-avro/node_modules/node-rdkafka npm ERR! gyp ERR! node -v v18.18.2 npm ERR! gyp ERR! node-gyp -v v9.4.0 npm ERR! gyp ERR! not ok
Is there any solution for that?
I'm having the same issue
same here
Same here!
Same here!
@zach-morgan are you using exactly the same version (2.18.0) and OS?
Also did you install the required build tools gcc
, g++
and make
?