38

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

monk
  • 4,727
  • 13
  • 45
  • 67

12 Answers12

77

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.

Keval
  • 3,389
  • 2
  • 24
  • 41
  • 1
    apt-get is not available for OS X. How can purge npm. I can install npm using Homebrew. – Syed Tariq Feb 17 '16 at 15:11
  • 1
    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. – Chuck Krutsinger May 31 '19 at 23:17
74

To uninstall Ionic and Cordova:

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

To install:

sudo npm install -g cordova
bruntime
  • 371
  • 2
  • 13
Lokesh Patel
  • 1,122
  • 8
  • 14
5

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 cordova@6.0.0

sudo npm install -g ionic@2.1.18
Suraj Gorai
  • 61
  • 1
  • 3
5

Try that. Worked for me.

npm uninstall -g @ionic/cli
Maizied Hasan Majumder
  • 1,197
  • 1
  • 12
  • 25
4

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

npm uninstall -g ionic cordova
Maizied Hasan Majumder
  • 1,197
  • 1
  • 12
  • 25
3

Here the command to remove cordova and ionic from your machine

npm uninstall cordova ionic
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67
  • 1
    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. – rfornal Apr 03 '15 at 12:14
3

These commands worked for me:

npm uninstall -g cordova
npm uninstall -g ionic
bruntime
  • 371
  • 2
  • 13
Muhammed Moussa
  • 4,589
  • 33
  • 27
1

command to remove cordova and ionic

sudo npm uninstall -g ionic
Tushar
  • 85,780
  • 21
  • 159
  • 179
Rusahang Limbu
  • 581
  • 6
  • 10
1

You can use following command if you uninstall globally

npm uninstall -g cordova ionic

option g for global

if you want to uninstall from he drive then you can use following command

npm uninstall cordova ionic
Yusuf
  • 703
  • 8
  • 13
1

1) first remove cordova cmd

npm uninstall -g cordova

2) After that remove ionic

npm uninstall -g ionic

Supriya
  • 481
  • 5
  • 5
1

I found that I had to use:

npm uninstall @ionic/cli

to stop ionic from still being active.

Capnross
  • 29
  • 1
1

for mac users, please try

sudo npm uninstall -g @ionic/cli
Nibin Benjamin
  • 240
  • 2
  • 6