Mohan Gopi Mohan Gopi - 5 months ago 311
AngularJS Question

How do you completely remove Ionic and Cordova installation from Ubuntu?

How do I remove Cordova and ionic 1 and its dependency from my Ubuntu completely?. How to reinstall all again?

To install my ionic and its dependency i use this blog https://www.thepolyglotdeveloper.com/2014/09/install-android-cordova-ionic-framework-ubuntu/

I tried

npm uninstall -g cordova ionic
but it is not working

I am getting this two error

npm WARN uninstall not installed in /home/gopi/node_modules: "cordova"
npm WARN uninstall not installed in /home/gopi/node_modules: "ionic"

Answer

The error actually says that your syntax is wrong for the command. Better try the commands individually:

For ionic:

$ npm cache clear
$ npm uninstall ionic

it should work as in:https://forum.ionicframework.com/t/install-ionic-on-mac/1854/6

For Cordova, the command :

sudo npm uninstall cordova -g

Please note : The -g is after.

Refer: http://stackoverflow.com/a/19523868/1904479