How do you uninstall Bower? I mean the package manager, not the packages (that I have already uninstalled).
How do you uninstall Bower (the package manager)?
Asked Answered
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? –
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
sudo npm uninstall -g bower
Sudo: to do it as an superUser/administrator
-g : to try it globally
sudo npm uninstall -g bower
sudo npm remove -g bower
sudo npm rm -g bower
npm Uninstall aliases remove, rm, r, un, unlink reference
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.
npm install -g bower
– Rehabilitate