How do you uninstall Bower? I mean the package manager, not the packages (that I have already uninstalled).
Asked
Active
Viewed 4.4k times
25
-
2`npm install -g bower` – zishe Jun 05 '14 at 07:28
-
It depends how you installed bower in the first place. – Chris Martin Apr 21 '16 at 03:52
3 Answers
51
To uninstall global package :
npm uninstall -g bower
See this thread : how to uninstall npm modules in node js?
-
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
-
-
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
-
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
-
-
In mentioned 3 lines(commands), you can use any one of 'em to uninstall the bower. remove, rm, r, un, unlike are "uninstall alias". does it make sense? – f-society Jun 15 '16 at 08:16