How to Completely Remove Ionic and Cordova Installation from Mac

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

BlueBell's answer is right, you can do it by:

npm uninstall cordova ionic

Are you planning to re-install it? If you feel something's wrong which is causing problems then you should update npm and clean npm's cache.

npm cache clean -f
npm install npm -g

If problems still persist, I'd suggest re-install of NPM and Node.

npm uninstall node
apt-get purge npm
apt-get install npm
npm install node -g

Let me know if you face issues in the process.

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

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

Ionic CLI not uninstalling

What is your node and npm versions ?

Please update latest node js (https://nodejs.org/en/download/current/)
then check that

 node -v  
npm -v

Node version must be v8.5.0 (includes npm 5.3.0) and then

 sudo npm uninstall -g ionic 
sudo npm cache clean --force
sudo npm install ionic

check the ionic version

ionic -v 

version will be ^3.10.1. If everything is ok you can use new project command as given below

ionic start --list 

you can see what kind of project types here as an example

ionic start blank

Cannot uninstall ionic using npm on Mac

With some investigation I found out what was going wrong. At some point earlier I had installed ionic version 1 which got loaded by npm in /usr/local/lib as part of the sub-directory node_modules. Later on when I installed version 2 globally with sudo it installed it in my home directory ~/.npm-global/lib/node_modules/ionic/bin. The installed program was a node script called ionic. The bash alias was still pointing to the version 1 code. I don't know why npm changed the directory. To fix the problem, I did the following:

  1. Deleted the folder /usr/local/bin/node_modules/ionic
  2. Removed the symbolic link to the alias named ionic
  3. Re-installed the ionic@beta globally using sudo. This created the node script ionic in ~/.npm-global/lib/node_modules/ionic/bin.
  4. Tested it using the full path to the node script ionic
  5. In the process of creating a symbolic link named ionic so I can access the command from anywhere in my home directory.
  6. Have to load cordova 4.3 and

I should have found this earlier but I am getting rusty in my command line skills. It turns out that ionic-cli is works for both v1 and v2.

How to remove installed ionic cordova plugin from ionic 2 / 3 or ionic V2+ project

I just refer their document here.

Example:

To install a plugin we are using following way.

ionic cordova plugin add <plugin-name>

(ionic cordova plugin add cordova-plugin-dialogs)

npm install --save @ionic-native/<npm-name-of-plugin>

(npm install --save @ionic-native/dialogs)

To Uninstall the plugin just need to revert above things back as bellow

ionic cordova plugin remove <plugin-name> or ionic cordova plugin rm <plugin-name>

(ionic cordova plugin remove cordova-plugin-dialogs) or (ionic cordova plugin rm cordova-plugin-dialogs)

Finally uninstall the associated Ionic Native package(s) from npm

npm uninstall --save @ionic-native/<npm-name-of-plugin>

(npm uninstall --save @ionic-native/dialogs)

The --save flag will remove the project's package.json entry for that plugin

Doing above things helps me to remove plugin completely with its npm dependencies from the project. Hope this will useful to someone else

Remove ionic android platform manually?

It might Sound funny I simply Restarted My PC. and everything Works Fine



Related Topics



Leave a reply



Submit