npm install not working
See original GitHub issueEnvironment Information
- OS [e.g. Mac, Arch, Windows 10]: Ubuntu 18.04
- Node Version [e.g. 8.2.1]: 10.17.0
- NPM Version [e.g. 5.4.2]: 6.13.6
- node-rdkafka version [e.g. 2.3.3]: 2.7.*
- node-gyp version : 5.0.5 Steps to Reproduce npm install node-rdkafka
Additional context
gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21) gyp ERR! System Linux 5.0.0-37-generic 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 /home/taran/Documents/investwell/investlogic/node_modules/node-rdkafka gyp ERR! node -v v10.17.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN eslint-config-standard@10.2.1 requires a peer of eslint-plugin-promise@>=3.5.0 but none is installed. You must install peer dependencies yourself. npm WARN iwelllogic@1.0.0 No description npm WARN iwelllogic@1.0.0 No repository field.
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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top GitHub Comments
On Mac 10.15.4 (node v14.2.0), I get it node-gyp to compile as a requirement for
node-rdkafka
. I am not sure if you need all of the following. Thanks for the hints.brew
(??)brew install librdkafka
npm install node-rdkafka -g
(does not work without the-g
)npm link node-rdkafka
(to link the global module)I was on v13.11 but dropped to v12 and it works. Thanks for looking into it for me! Hopefully it doesn’t break on v14 when it launches