25

How do you uninstall Bower? I mean the package manager, not the packages (that I have already uninstalled).

Romain Poirier
  • 431
  • 1
  • 4
  • 10

3 Answers3

51

To uninstall global package :

npm uninstall -g bower

See this thread : how to uninstall npm modules in node js?

Community
  • 1
  • 1
dpellier
  • 1,029
  • 11
  • 9
  • I got a bunch of errors with npm ERR!... How can I bypass them and force to uninstall properly? – Romain Poirier Jun 05 '14 at 07:33
  • Are you root when you launch the cmd ? Try with sudo before. – dpellier Jun 05 '14 at 07:36
  • Yes I typed sudo -s before the command line before to uninstall Bower. And I just got **bash-3.2#** as answer from the Terminal after typing my password (and before to uninstall Bower). – Romain Poirier Jun 05 '14 at 07:38
  • First I was not root, so I got an error from Bower asking me to log as root. Then, I got other errors from Bower when I tried again to uninstall. Now I got **npm WARN uninstall not installed in /usr/local/lib/node_modules** as error: "bower": what does it mean? – Romain Poirier Jun 05 '14 at 07:42
  • It means bower is uninstall globally : try `bower -v` -> if it show an error, bower is not here anymore. – dpellier Jun 05 '14 at 07:45
  • I got **-bash: bower: command not found**: thanks, it works :-) – Romain Poirier Jun 05 '14 at 07:47
  • Great. Can you please set your question as answered. – dpellier Jun 05 '14 at 07:49
4
sudo npm uninstall -g bower

Sudo: to do it as an superUser/administrator

-g : to try it globally

Razan Paul
  • 13,618
  • 3
  • 69
  • 61
1
sudo npm uninstall -g bower
sudo npm remove -g bower
sudo npm rm -g bower

npm Uninstall aliases remove, rm, r, un, unlink reference

f-society
  • 2,898
  • 27
  • 18