How do you uninstall Bower (the package manager)?
Asked Answered
J

3

25

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

Jovita answered 5/6, 2014 at 7:27 Comment(2)
npm install -g bowerRehabilitate
It depends how you installed bower in the first place.Gondola
C
51

To uninstall global package :

npm uninstall -g bower

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

Champlain answered 5/6, 2014 at 7:29 Comment(7)
I got a bunch of errors with npm ERR!... How can I bypass them and force to uninstall properly?Jovita
Are you root when you launch the cmd ? Try with sudo before.Champlain
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).Jovita
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?Jovita
It means bower is uninstall globally : try bower -v -> if it show an error, bower is not here anymore.Champlain
I got -bash: bower: command not found: thanks, it works :-)Jovita
Great. Can you please set your question as answered.Champlain
B
4
sudo npm uninstall -g bower

Sudo: to do it as an superUser/administrator

-g : to try it globally

Bristol answered 21/4, 2016 at 3:48 Comment(0)
C
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

Camfort answered 14/6, 2016 at 3:30 Comment(2)
Can you elaborate the steps?Neutral
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?Camfort

© 2022 - 2024 — McMap. All rights reserved.