Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Cordova - uninstall globally

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?

like image 399
itsme Avatar asked Oct 22 '13 16:10

itsme


2 Answers

Try sudo npm uninstall cordova -g to uninstall it globally and then just npm install cordova without the -g flag after cding to the local app directory

like image 170
enducat Avatar answered Oct 15 '22 10:10

enducat


Try this for Windows:

    npm uninstall -g cordova 

Try this for MAC:

    sudo npm uninstall -g cordova 

You can also add Cordova like this:

  1. If You Want To install the previous version of Cordova through the Node Package Manager (npm):

    npm install -g [email protected] 
  2. If You Want To install the latest version of Cordova:

    npm install -g cordova  

Enjoy!

like image 20
KAUSHAL J. SATHWARA Avatar answered Oct 15 '22 08:10

KAUSHAL J. SATHWARA