Mohan Gopi Mohan Gopi - 6 months ago 414
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

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"


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:

For Cordova, the command :

sudo npm uninstall cordova -g

Please note : The -g is after.