Blizzard / Blizzard/node-rdkafka

Build error when installing the module

Open
#1,058 5 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing npm install for node-rdkafka 2.18.0 with Node 18.18.2 on macOS Ventura and capture the compiler output preceding the node-gyp failure at Release/obj.target/node-librdkafka/src/binding.o. Inspect the node-gyp rebuild entry point and the native binding build configuration; done means installation completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kafka, nodejs
Domain
backend, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.