[Pkg-javascript-devel] node-gyp install path question

Pirate Praveen praveen at onenetbeyond.org
Fri Sep 14 17:12:37 BST 2018


Hi Jeremy,

Any reason node-gyp is installed in /usr/share/node-gyp and not in
/usr/share/nodejs/node-gyp?

I get this error when building npm,

node bin/npm-cli.js cache clean
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'node-gyp/bin/node-gyp'

and the log

5 verbose stack Error: Cannot find module 'node-gyp/bin/node-gyp'
5 verbose stack     at Function.Module._resolveFilename (module.js:547:15)
5 verbose stack     at resolveFileName
(/usr/lib/nodejs/resolve-from/index.js:29:39)
5 verbose stack     at resolveFrom
(/usr/lib/nodejs/resolve-from/index.js:43:9)
5 verbose stack     at module.exports
(/usr/lib/nodejs/resolve-from/index.js:46:41)
5 verbose stack     at Object.<anonymous>
(/home/pravi/forge/debian/git/js-team/build-area/npm-5.8.0+ds3/node_modules/npm-lifecycle/index.js:18:31)
5 verbose stack     at Module._compile (module.js:652:30)
5 verbose stack     at Object.Module._extensions..js (module.js:663:10)
5 verbose stack     at Module.load (module.js:565:32)
5 verbose stack     at tryModuleLoad (module.js:505:12)
5 verbose stack     at Function.Module._load (module.js:497:3)
5 verbose stack     at Module.require (module.js:596:17)
5 verbose stack     at require (internal/module.js:11:18)
5 verbose stack     at Object.<anonymous>
(/home/pravi/forge/debian/git/js-team/build-area/npm-5.8.0+ds3/lib/utils/lifecycle.js:4:19)
5 verbose stack     at Module._compile (module.js:652:30)
5 verbose stack     at Object.Module._extensions..js (module.js:663:10)
5 verbose stack     at Module.load (module.js:565:32)

Thanks

Praveen





More information about the Pkg-javascript-devel mailing list