Node-gyp: /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

Created on 24 Aug 2020  路  1Comment  路  Source: nodejs/node-gyp

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

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sentero-esp12 picture Sentero-esp12  路  3Comments

adrianescat picture adrianescat  路  3Comments

meldsza picture meldsza  路  3Comments

chen4393 picture chen4393  路  3Comments

halkar picture halkar  路  4Comments