Unable to install node-rdkafka on MacOS BigSur
See original GitHub issueEnvironment 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:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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. 🤔
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.