我试图用Ionic和Cordova创建一个移动应用程序,但是当我启动Comand时

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

我可以看到下载已经完成,因为我可以看到生成的文件夹。我遵循了我在网上找到的所有建议,比如update node和npm,但是没有任何效果。
下面是npm,node,cordova和ionic的版本
离子2.2.1
科尔多瓦6.5.0
净现值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上工作

最佳答案

我找到了解决办法!
我试着用午餐

ionic start app blank --verbose

和以前一样,它停在了npminstall。问题是冗长并没有告诉我真正的问题。
我移动到Ionic下载的文件夹中,然后启动
npm install --verbose

他告诉我问题出在https代理配置上。
如果离子给出的误差是
There was an error with the spawned command: npminstall

只要进入下载的文件夹并启动
npm install --verbose

检查真正的问题

关于node.js - ionic 开始提供错误:生成的命令存在错误:npminstall,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42902743/

10-12 00:26
查看更多