i have uninstalled yeoman , 2 yeoman generators with:
sudo npm uninstall yeoman -g sudo npm uninstall generator-angular -g sudo npm uninstall generator-karma -g
but when list installed packages, npm keeps complaining can't find yeoman, or generators... (which right, uninstalled them...)
when run npm update, re-installed! argh! why!
npm ls -g --depth=0 /usr/local/lib ├── bower@1.7.1 ├── browserify@12.0.1 ├── express-generator@4.13.1 ├── error: enoent: no such file or directory, open '/usr/local/lib/node_modules/generator-angular/package.json ├── error: enoent: no such file or directory, open '/usr/local/lib/node_modules/generator-karma/package.json ├── grunt-cli@0.1.13 ├── npm@3.5.3 ├── typescript@1.7.5 └── error: enoent: no such file or directory, open '/usr/local/lib/node_modules/yo/package.json
and lot more errors (won't post them here), starting with
npm err! error in /usr/local/lib/node_modules/generator-angular: enoent: no such file or directory, open '/usr/local/lib/node_modules/generator-angular/package.json' npm err! extraneous: wiredep /usr/local/lib/node_modules/generator-angular/node_modules/wiredep
did try clean npm cache? try this:
1. cd npm directory (/usr/local/lib/node_modules, guess) 2. sudo rm -rf ~/.npm 3. sudo npm cache clean
Comments
Post a Comment