node.js - node-gyp Error cannot find module '/node_modules/node-gyp/bin/node-gyp.js' -
why looking node-gyp.js in absolute path, when node-gyp installed in /usr/bin/node-gyp? if
find /usr -name node-gyp.js
the result is
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
as can seen, have node-gyp.js in 2 places. how can direct node-gyp search these places?
it node-gyp installation trouble. using old version of npm; after upgrading npm, node-gyp installed , runs ok.
Comments
Post a Comment