unable to install on Mac Mojave
See original GitHub issueKeep 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();
~~~
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: ~
…/src/producer.cc:457:46: error: no matching member function for call to ‘GetOwnPropertyNames’
v8::Localv8::Array props = header->GetOwnPropertyNames();
^^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:
- Created 4 years ago
- Reactions:4
- Comments:9
Top GitHub Comments
This issue is happening to me with node 12.16.1 too, anyone knows how to fix it without downgrading node? Thanks!
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