Javascript 如何从 mac 中完全删除 Ionic 和 Cordova 安装?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29428929/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you completely remove Ionic and Cordova installation from mac?
提问by monk
How can I remove Cordova and ionic installation from my Mac completely? I am running mac os Yosemite 10.10.2
如何从我的 Mac 中完全删除 Cordova 和 ionic 安装?我正在运行 mac os Yosemite 10.10.2
回答by Keval
BlueBell's answer is right, you can do it by:
BlueBell 的回答是对的,您可以通过以下方式做到:
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 并清理npm的缓存。
npm cache clean -f
npm install npm -g
If problems still persist, I'd suggest re-install of NPM and Node.
如果问题仍然存在,我建议重新安装 NPM 和 Node.js。
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.
如果您在此过程中遇到问题,请告诉我。
回答by Lokesh Patel
To uninstall Ionic and Cordova:
卸载 Ionic 和 Cordova:
sudo npm uninstall -g cordova
sudo npm uninstall -g ionic
To install:
安装:
sudo npm install -g cordova
回答by Suraj Gorai
Command to remove Cordova and ionic
删除 Cordova 和 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
用于窗口系统
- npm 卸载 -g 离子
- npm 卸载 -g 科尔多瓦
对于 Mac 系统
- 须藤 npm 卸载 -g 离子
- 须藤 npm 卸载 -g 科尔多瓦
用于安装cordova和ionic
- npm install -g 科尔多瓦
- npm install -g 离子
Note:
笔记:
- If you want to install in MAC System use before npm use sudoonly.
- And plan to install specific version of ionic and cordova then use @(version no.).
- 如果您想在 npm 之前安装在 MAC 系统中使用,请仅使用sudo。
- 并计划安装特定版本的 ionic 和cordova 然后使用@(version no.)。
eg.
例如。
sudo npm install -g [email protected]
sudo npm install -g [email protected]
回答by Ramesh Murugesan
Here the command to remove cordova and ionic from your machine
这是从您的机器中删除cordova和ionic的命令
npm uninstall cordova ionic
回答by Muhammed Moussa
These commands worked for me:
这些命令对我有用:
npm uninstall -g cordova
npm uninstall -g ionic
回答by Maijied Hasan Shuvo
If you want to delete ionic and cordova at same time.Run this code in cmd
如果你想同时删除ionic和cordova。在cmd中运行这段代码
npm uninstall -g ionic cordova
回答by FoneBay
command to remove cordova and ionic
删除cordova和ionic的命令
sudo npm uninstall -g ionic
回答by Yusuf
You can use following command if you uninstall globally
如果您全局卸载,则可以使用以下命令
npm uninstall -g cordova ionic
option g for global
全局选项 g
if you want to uninstall from he drive then you can use following command
如果你想从他的驱动器中卸载,那么你可以使用以下命令
npm uninstall cordova ionic
回答by Supriya
1) first remove cordova cmd
1)首先删除cordova cmd
npm uninstall -g cordova
npm 卸载 -g 科尔多瓦
2) After that remove ionic
2)然后去除离子
npm uninstall -g ionic
npm 卸载 -g 离子

