Reputation: 7724
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"
Upvotes: 2
Views: 18882
Reputation: 7578
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
If the above command does not uninstall ionic try the one below.
$ sudo npm uninstall -g ionic
For Cordova, the command :
sudo npm uninstall cordova -g
Please note : The -g is after.
Refer: https://stackoverflow.com/a/19523868/1904479
Upvotes: 6
Reputation: 41
The only thing that worked for me was to run with the -g before
sudo npm uninstall -g cordova
sudo npm uninstall -g ionic
Upvotes: 3