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.

npm install not working

See original GitHub issue

Environment 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fortran01commented, May 19, 2020

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.

  • un-installed python2 that I installed before with brew (??)
  • brew install librdkafka
  • npm install node-rdkafka -g (does not work without the -g)
  • npm link node-rdkafka (to link the global module)
1reaction
chazguerrerocommented, Mar 13, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed · Way 2. Make Sure There Is a Package.json File · Way 3. Delete Lock File...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
This npm install is not working on Windows - node.js
This npm install is not working on Windows · ran it as admin, · tried npm install -g · restarted the XAMPP server...
Read more >
Common errors
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
Why does NPM install not work?
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be...
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