卸载了npm软件包但仍然安装了它们

时间:2015-11-02 16:32:43

标签: node.js npm bower yo

我想开始全新安装yoemen,但似乎我无法摆脱它首先

当我运行npm remove -g yo bower grunt-cli时,它会正常删除,但是当我输入yo时,我会获得正常的生成器菜单:

enter image description here

如何摆脱所有生成器(图中所示的生成器)并删除yoemen以重新安装它?

谢谢

修改

username@username-Inspiron-3521:~/Documents/angular/testing2$ npm remove -g yo
npm WARN uninstall not installed in /home/username/npm/lib/node_modules: "yo"
username@username-Inspiron-3521:~/Documents/angular/testing2$ yo
? 'Allo username! What would you like to do? (Use arrow keys)
  Run a generator
❯ Angular 
  Express Angular 
  Angular Fullstack 
  Karma 

1 个答案:

答案 0 :(得分:0)

我不得不删除所有内容并重新开始。

安装最新节点和npm: https://gist.github.com/jsantana90/46c9bb977d5775df1516

并修复我在本教程中遵循的路径: http://www.competa.com/blog/2014/12/how-to-run-npm-without-sudo/