Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Users/mine/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp: line 5: /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js: No such file or directory #2199

Closed
XiaohengLiu opened this issue Aug 24, 2020 · 1 comment

Comments

@XiaohengLiu
Copy link

i installed node through nvm, but node-gyp is trying to use the standard node_module in the usr/local/lib repo.

/Users/mine/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp: line 5: /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js: No such file or directory

node-gyp: 7.1.0
node: 12.13.1
mac OS: 10.15.6

@rvagg
Copy link
Member

rvagg commented Aug 25, 2020

run npm config list, you may have a node_gyp set in there. Unset it with npm config delete and node-gyp-bin/node-gyp should do a relative reference rather than absolute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants