I've installed cordova via npm and i did it globally, now i would like to remove it to reinstall it on single app folder
Any clue on how to do it safely?
This question is related to
node.js
cordova
uninstallation
Super late here and I still couldn't uninstall using sudo
as the other answers suggest. What did it for me was checking where cordova
was installed by running
which cordova
it will output something like this
/usr/local/bin/
then removing by
rm -rf /usr/local/bin/cordova
This can happen when the cordova was installed globally on a different version of the node.
Being necessary to manually delete yourself as suggested in the previous comment:
which cordova
it will output something like this
/usr/local/bin/
then removing by
rm -rf /usr/local/bin/cordova
Try this for Windows:
npm uninstall -g cordova
Try this for MAC:
sudo npm uninstall -g cordova
You can also add Cordova like this:
If You Want To install the previous version of Cordova through the Node Package Manager (npm):
npm install -g [email protected]
If You Want To install the latest version of Cordova:
npm install -g cordova
Enjoy!
Source: Stackoverflow.com