Skip to content

Instantly share code, notes, and snippets.

@linkesch
Created April 3, 2018 18:41
Show Gist options
  • Save linkesch/1cd60f52dd33c8a23bc152764f6729cf to your computer and use it in GitHub Desktop.
Save linkesch/1cd60f52dd33c8a23bc152764f6729cf to your computer and use it in GitHub Desktop.
Error: Cannot find module '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
# https://github.com/nodejs/node-gyp/issues/809#issuecomment-343288691
# After switching to a new NodeJS version using n I got this issue as well (I usually do when switching versions...)
# This did the trick for me:
npm explore npm -g -- npm install node-gyp@latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment