【发布时间】:2017-08-11 16:19:57
【问题描述】:
我正在尝试使用 ionic 和 cordova 创建一个移动应用,但是当我启动命令时
ionic start {{appname}} blank
下载后npm给我
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
我可以看到下载完成,因为我可以看到生成的文件夹。我遵循了我在网上找到的所有建议,比如更新节点和 npm,但没有任何效果。 这里是npm、node、cordova和ionic的版本
- 离子 2.2.1
- 科尔多瓦 6.5.0
- npm 4.4.1
- 节点 6.10.0
其他小警告: 我不知道为什么在我启动时进行了升级
ionic -v
我有这个:
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
2.2.1
即使cordova 版本> 4.2.0 但我真的不认为这是主要问题。有什么想法吗?
编辑: 我正在使用 Windows 7
【问题讨论】:
-
拜托了!提及您的操作系统信息。
-
你说得对,我正在使用 Windows 7
-
以管理员身份打开cmd,然后尝试运行此命令。
-
我正在使用 gitbash,所以我以管理员身份工作
-
ionic start myApp blank --v2,尝试运行这个命令。
标签: node.js cordova ionic-framework npm