node.js - Yeoman Errors, Can't Access Yeoman, Issue: "Error: Cannot find module 'cli-width'" -
i'm getting errors trying install yeoman generators. have scaffolded out many projects yeoman.
i don't know caused me errors, no yeoman commands work anymore. can't run yo
and can't scaffold project out or install new generators.
here's little history of errors
$ yo angular module.js:338 throw err; ^ error: cannot find module 'through' @ function.module._resolvefilename (module.js:336:15) @ function.module._load (module.js:278:25) @ module.require (module.js:365:17) @ require (module.js:384:17) @ object.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/ui/bottom-bar.js:6:15) @ module._compile (module.js:460:26) @ object.module._extensions..js (module.js:478:10) @ module.load (module.js:355:32) @ function.module._load (module.js:310:12) @ module.require (module.js:365:17) @ require (module.js:384:17)
then installed 'through' module:
npm install -g through npm warn unmet dependency /usr/local/lib/node_modules/apigee-127/node_modules/apigee-remote-proxy/node_modules/inquirer requires lodash@'^3.3.1' load npm warn unmet dependency /usr/local/lib/node_modules/apigee-127/node_modules/lodash, npm warn unmet dependency version 2.4.1 npm warn unmet dependency /usr/local/lib/node_modules/bower/node_modules/inquirer requires chalk@'^0.5.0' load npm warn unmet dependency /usr/local/lib/node_modules/bower/node_modules/chalk, npm warn unmet dependency version 1.0.0 npm warn unmet dependency /usr/local/lib/node_modules/generator-gulp-webapp/node_modules/yeoman-generator/node_modules/inquirer requires lodash@'^3.3.1' load npm warn unmet dependency /usr/local/lib/node_modules/generator-gulp-webapp/node_modules/yeoman-generator/node_modules/lodash, npm warn unmet dependency version 2.4.1 npm err! darwin 13.4.0 npm err! argv "node" "/usr/local/bin/npm" "install" "-g" "through" npm err! node v0.12.0 npm err! npm v2.7.6 npm err! code epeerinvalid npm err! peerinvalid package generator-karma not satisfy siblings' peerdependencies requirements! npm err! peerinvalid peer generator-angular@0.11.1 wants generator-karma@>=0.9.0 npm err! peerinvalid peer generator-angular-php@0.6.2 wants generator-karma@~0.8.3 npm err! please include following file support request: npm err! /users/me/personalprojects/ionicproject/npm-debug.log
ok should right? wrong,
$ yo module.js:338 throw err; ^ error: cannot find module 'cli-width' @ function.module._resolvefilename (module.js:336:15) @ function.module._load (module.js:278:25) @ module.require (module.js:365:17) @ require (module.js:384:17) @ object.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/utils/tty.js:7:16) @ module._compile (module.js:460:26) @ object.module._extensions..js (module.js:478:10) @ module.load (module.js:355:32) @ function.module._load (module.js:310:12) @ module.require (module.js:365:17) @ require (module.js:384:17)
i have stopped there, don't want go down worm hole installing npm packages without knowing if i'm on right path or not. can't find similar problems i'm not sure of root cause started causing these errors.
i'm on osx using mavericks.
well didn't provide command ran, it's hard help... it's definitively issue npm.
but 2 usual trouble shooting:
- never run npm sudo.
- read npm installation log may have told errors were.
Comments
Post a Comment