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 on Mac Mojave

See original GitHub issue

Keep getting the same error like below:

…/src/producer.cc:453:59: error: no matching member function for call to ‘ToObject’ v8::Localv8::Object header = v8Headers->Get(i)->ToObject(); ~~~^~ …/src/producer.cc:457:46: error: no matching member function for call to ‘GetOwnPropertyNames’ v8::Localv8::Array props = header->GetOwnPropertyNames(); ^ 5 warnings and 2 errors generated. make: *** [Release/obj.target/node-librdkafka/src/producer.o] Error 1 rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Darwin 18.7.0 gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/lynhnn/flow/dcc/dcc-feed/node_modules/node-rdkafka gyp ERR! node -v v12.3.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-rdkafka@2.7.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-rdkafka@2.7.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

2reactions
eduardodelaguilacommented, Mar 4, 2020

This issue is happening to me with node 12.16.1 too, anyone knows how to fix it without downgrading node? Thanks!

2reactions
mdchamberscommented, Nov 20, 2019

I’m getting this same or a similar error with node-rdkafka v2.7.4 and node v13.1.0. It installs correctly with v12.12.0

5 errors generated.
make: *** [Release/obj.target/node-librdkafka/src/binding.o] Error 1
rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/Cellar/node/13.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd <REDACTED>/node_modules/node-rdkafka
gyp ERR! node -v v13.1.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-rdkafka@2.7.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-rdkafka@2.7.4 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/<REDACTED>/.npm/_logs/2019-11-20T02_11_11_249Z-debug.log
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix your Mac that gets stuck when installing Mojave ...
First solution: Restart your Mac. · Launch the App Store on your Mac. · From the App Store main screen, search macOS 10.14...
Read more >
If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >
I can't install macOS Mojave because this copy of the Install ...
go to the applications, and delete the "install macOS Mojave" file, and then you are able to re-download the file in app store....
Read more >
How to Fix the "macOS Could Not Be Installed on Your ...
Before Troubleshooting Your macOS Installation Error · Step 1. Boot Up Your Mac in Safe Mode · Step 2. Create a New Backup...
Read more >
How to install macOS Mojave on Unsupported Macs - iFixit
1. Grab a copy of the Mojave Patch Tool at the link below: 2. Once the patch tool has finished downloading, open it...
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