ruby - How to solve error message "Cannot find module 'abbrev' -
my question similar how resolve "cannot find module" error using node.js? cannot solve problem using information provided in answer given.
i try run uncss grunt plugin, when try install (npm install grunt-uncss --save-dev), following error:
$ npm install grunt-uncss --save-dev module.js:340 throw err; ^ error: cannot find module 'abbrev' @ function.module._resolvefilename (module.js:338:15) @ function.module._load (module.js:280:25) @ module.require (module.js:364:17) @ require (module.js:380:17) @ object.<anonymous> (/usr/local/cellar/node/0.10.20/lib/node_modules/npm/node_modules/nopt/lib/nopt.js:10:14) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17)
based on answer mentioned above, tried installing 'abbrev' module, both in project folder, , globally, yields exact same error :(
npm install -g abbrev module.js:340 throw err; ^ error: cannot find module 'abbrev' @ function.module._resolvefilename (modu (etcetera)
main question: how solve error?
sub questions: 1) wonder, ruby error or node.js error? noticed 'abbrev' ruby command...? 2) or, problem have arisen because tried solve bus error: 10 ? (http://shoogledesigns.com/blog/blog/2014/01/13/gruntjs-running-watch-task-waiting-bus-error-10/)
i hope question doesn't sound obvious. i'm front-end developer, far command-line guru!
removing node-modules
, reinstalling modules specified in package.json
worked me.
i did runnning following commands:
rm -rf node-modules npm install
Comments
Post a Comment