node.js - NPM throw err 491 -
i have installed node hence run node -v , npm -v
confirm have been installed. node -v
returning version of node expected, npm -v
throws bellow error. can issue?
module.js:491 throw err; ^ error: cannot find module '../lib/utils/unsupported.js' @ function.module._resolvefilename (module.js:489:15) @ function.module._load (module.js:439:25) @ module.require (module.js:517:17) @ require (internal/module.js:11:18) @ /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21 @ object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm- cli.js:92:3) @ module._compile (module.js:573:30) @ object.module._extensions..js (module.js:584:10) @ module.load (module.js:507:32) @ trymoduleload (module.js:470:12)`
it might permissions problem, delete local/lib/node_modules folder , reinstall node. further info, might wanna check out error resolved on npm's github discussion.
Comments
Post a Comment