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

前端 未结 9 594
庸人自扰
庸人自扰 2020-12-02 13:20

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

相关标签:
9条回答
  • 2020-12-02 13:47

    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.

    0 讨论(0)
  • 2020-12-02 13:49

    Here the command to remove cordova and ionic from your machine

    npm uninstall cordova ionic
    
    0 讨论(0)
  • 2020-12-02 13:51

    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
    
    0 讨论(0)
  • 2020-12-02 13:54

    command to remove cordova and ionic

    sudo npm uninstall -g ionic
    
    0 讨论(0)
  • 2020-12-02 13:55

    To uninstall Ionic and Cordova:

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

    To install:

    sudo npm install -g cordova
    
    0 讨论(0)
  • 2020-12-02 13:56

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

    npm uninstall -g ionic cordova
    
    0 讨论(0)
提交回复
热议问题