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.

Unable to install node-rdkafka on MacOS BigSur

See original GitHub issue

Environment Information

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

Steps to Reproduce npm i node-rdkafka node-rdkafka Configuration Settings

Additional context I get the following logs on running npm i node-rdkafka


> node-rdkafka@2.9.1 install /Users/vikash/node_modules/node-rdkafka
> node-gyp rebuild

/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp: line 5: /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js: No such file or directory
npm WARN enoent ENOENT: no such file or directory, open '/Users/vikash/package.json'
npm WARN vikash No description
npm WARN vikash No repository field.
npm WARN vikash No README data
npm WARN vikash No license field.

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! node-rdkafka@2.9.1 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-rdkafka@2.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vikash/.npm/_logs/2020-12-04T01_57_01_830Z-debug.log

Additional logs from the log file:

376 warn enoent ENOENT: no such file or directory, open '/Users/vikash/package.json'
377 verbose enoent This is related to npm not being able to find a file.
378 warn vikash No description
379 warn vikash No repository field.
380 warn vikash No README data
381 warn vikash No license field.
382 verbose stack Error: node-rdkafka@2.9.1 install: `node-gyp rebuild`
382 verbose stack spawn ENOENT
382 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
382 verbose stack     at ChildProcess.emit (events.js:223:5)
382 verbose stack     at maybeClose (internal/child_process.js:1021:16)
382 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
383 verbose pkgid node-rdkafka@2.9.1
384 verbose cwd /Users/vikash/foo
385 verbose Darwin 20.1.0
386 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "node-rdkafka"
387 verbose node v12.15.0
388 verbose npm  v6.13.4
389 error code ELIFECYCLE
390 error syscall spawn
391 error file sh
392 error errno ENOENT
393 error node-rdkafka@2.9.1 install: `node-gyp rebuild`
393 error spawn ENOENT
394 error Failed at the node-rdkafka@2.9.1 install script.
394 error This is probably not a problem with npm. There is likely additional logging output above.
395 verbose exit [ 1, true ]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fabianschmitthennercommented, Mar 10, 2021

Oh no 😦 . Have you checked out https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#solutions ? There is also the manual download option. 🤔

0reactions
stale[bot]commented, Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'node-rdkafka' - Stack Overflow
1. npm install node-rdkafka · 2. npm install --save node-rdkafka · 3. npm install --save-dev node-rdkafka · I am using Apple MacOS BigSur....
Read more >
Error while installing node-rdkafka on MacOs
During npm install you my recieve an Undefined symbols for architecture x86_64: like below. In order to get around this you must install...
Read more >
Cannot find module 'node-rdkafka' - DevPress
Answer a question I have been trying to install node-rdkafka module ... Cannot find module 'node-rdkafka' ... I am using Apple MacOS BigSur....
Read more >
Here's what to do if you can't install macOS Big Sur on your 13 ...
When you install macOS Big Sur on these Mac models, the installer might say that the update cannot be installed on this computer,...
Read more >
[webpack-cli] error: spawn unknown system error -86 - You.com
I have a mac with M1 chip and I wonder if the error is related to this, ... Blizzard/node-rdkafkaUnable to install node-rdkafka: Error:...
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