[英]Unable to start new ionic project
Hi i have installed ionic through command npm install -g cordova ionic
and when I start my ionic project it gives the error. 嗨我已经通过命令
npm install -g cordova ionic
,当我启动我的离子项目时,它给出了错误。 I am stuck please help me solving this error. 我被困了请帮我解决这个错误。
Unable to add plugins.
无法添加插件。 Perhaps your version of Cordova is too old.
也许您的Cordova版本太旧了。 Try updating (npm install -g cordova), removing this project folder, and trying again.
尝试更新(npm install -g cordova),删除此项目文件夹,然后重试。 (CLI v1.7.11)
(CLI v1.7.11)
Your system information: 您的系统信息:
Cordova CLI: Not installed
Cordova CLI:未安装
Ionic Version: 1.1.1
离子版:1.1.1
Ionic CLI Version: 1.7.11
离子CLI版本:1.7.11
Ionic App Lib Version: 0.6.5
Ionic App Lib版本:0.6.5
OS: Node Version: v5.1.1
操作系统:节点版本:v5.1.1
Cordova seems not to be installed as it says Cordova CLI: Not installed
. 似乎没有安装
Cordova CLI: Not installed
因为它说Cordova CLI: Not installed
。 Re-install it. 重新安装它。
npm install -g cordova
Check if it is installed by executing: 通过执行以下命令检查是否已安装:
npm cordova -version
Question Solved: 解决的问题:
I solve this problem by uninstalling all previous versions of 我通过卸载以前的所有版本来解决这个问题
Cordova and ionic through command
npm uninstall -g cordova
andnpm uninstall ionic
Cordova和ionic通过命令
npm uninstall -g cordova
和npm uninstall ionic
After that goto 之后转到
C:\\Users\\Muhammad and then delete the folders from with the name .ionic and .corodova
C:\\ Users \\ Muhammad然后删除名称为.ionic和.corodova的文件夹
After that again open cmd and write commands npm install -g cordova
which will install Cordova and after installing Cordova restart/logoff your Pc then again goto cmd and install ionic by typing npm install -g ionic
之后再次打开cmd并编写命令
npm install -g cordova
将安装Cordova并在安装Cordova后重启/注销您的Pc然后再次转到cmd并通过键入npm install -g ionic
And after that create new project it will work fine. 之后创建新项目它将工作正常。 Don't forget to delete those folders otherwise it will generate same error.
不要忘记删除这些文件夹,否则会产生相同的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.