离子开始提供错误:生成的命令存在错误:npminstall [英] Ionic start give error: There was an error with the spawned command: npminstall

查看:141
本文介绍了离子开始提供错误:生成的命令存在错误:npminstall的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用ionic和cordova创建一个移动应用程序,但是当我启动comand时

I'm trying to create a mobile app with ionic and cordova but when I launch the 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

我可以看到下载已完成,因为我可以看到生成的文件夹.我遵循了我在网上发现的所有建议,例如更新节点和npm,但没有任何效果. 这是npm,node,cordova和ionic的版本

I can see that the download is completed because I can see the generated folders. I followed all the suggest I found on the web like update node and npm but nothing works. Here are the version of npm, node, cordova and ionic

  • ionic 2.2.1
  • cordova 6.5.0
  • npm 4.4.1
  • 节点6.10.0

其他小警告: 我不知道为什么启动后毕竟要升级

Other little warning: I don't know why after all the upgrade when i launch

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以上,但我真的不认为这是主要问题.有什么想法吗?

even if the cordova version is > 4.2.0 but I really don't think that this is the primary problem. Any ideas?

我正在Windows 7上工作

I'm working on windows 7

推荐答案

我找到了解决方案! 我试图午餐命令

I found the solution! I tried to lunch the command

ionic start app blank --verbose

,与之前一样,它在npminstall处停止.问题是冗长并没有告诉我真正的问题. 我进入了Ionic下载的文件夹,然后启动了

and as before it stopped at npminstall. The problem were that verbose doesn't told me the real problem. I moved inside the folder downloaded by Ionic and I launch

npm install --verbose

,在这里他告诉我问题出在https代理配置. 因此,如果Ionic给出的错误只是

and here he told me that the problem were the https proxy configuration. So if the error gave by Ionic is just

There was an error with the spawned command: npminstall

只需进入下载的文件夹并启动

just go inside the downloaded folder and launch

npm install --verbose 

检查实际问题

这篇关于离子开始提供错误:生成的命令存在错误:npminstall的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆