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

180,130

Solution 1

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.

Solution 2

To uninstall Ionic and Cordova:

sudo npm uninstall -g cordova
sudo npm uninstall -g ionic

To install:

sudo npm install -g cordova

Solution 3

Command to remove Cordova and ionic

  • For Window system

    • npm uninstall -g ionic
    • npm uninstall -g cordova
  • For Mac system

    • sudo npm uninstall -g ionic
    • sudo npm uninstall -g cordova
  • For install cordova and ionic

    • npm install -g cordova
    • npm install -g ionic

Note:

  • If you want to install in MAC System use before npm use sudo only.
  • And plan to install specific version of ionic and cordova then use @(version no.).

eg.

sudo npm install -g [email protected]

sudo npm install -g [email protected]

Solution 4

If you want to delete ionic and cordova at same time.Run this code in cmd

npm uninstall -g ionic cordova

Solution 5

These commands worked for me:

npm uninstall -g cordova
npm uninstall -g ionic
Share:
180,130
monk
Author by

monk

@kshitizrimal

Updated on December 08, 2021

Comments

  • monk
    monk over 2 years

    How can I remove Cordova and ionic installation from my Mac completely? I am running mac os Yosemite 10.10.2

  • rfornal
    rfornal about 9 years
    This looks like a comment on the question not an attempt at an answer; please post it as such or rewrite how you are answering.
  • Syed Tariq
    Syed Tariq about 8 years
    apt-get is not available for OS X. How can purge npm. I can install npm using Homebrew.
  • Saeed D.
    Saeed D. about 8 years
    Other answers did not have the required -g on the command line. Your version worked fine for me. Thanks!
  • Murshid Ahmed
    Murshid Ahmed almost 8 years
    @SaeedD That is because you have installed Cordova using -g which means globally. Otherwise -g wouldn't have needed.
  • S.Yadav
    S.Yadav over 7 years
    it worked for me to get uninstall the setup form my machine.
  • Chuck Krutsinger
    Chuck Krutsinger almost 5 years
    Even after I run 'nom uninstall cordova ionic', it's still there. I can type ionic -v and get a version or type ionic serve and it still executes. I need to uninstall it completely.
  • Sinan Ceylan
    Sinan Ceylan about 3 years
    That worked for me (with -g switch) to remove globally on MacOS big sur. npm uninstall -g @ionic/cli