Chocolatey在等待命令完成时超时了。[METEORJS]

3

为了试用,我尝试使用Chocolatey安装Meteor 1.6。

当我运行命令“choco install meteor”时,不久之后,我收到以下错误信息:

Downloading meteor 64 bit
  from 'https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64'
Progress: 48% - Saving 83.27 MB of 171.74 MB                                   C
hocolatey timed out waiting for the command to finish. The timeout
 specified (or the default value) was '2700' seconds. Perhaps try a
 higher `--execution-timeout`? See `choco -h` for details.
The install of meteor was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\meteor\tools\chocolateyinstal
l.ps1'.
 See log for details.

Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - meteor (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\meteo
r\tools\chocolateyinstall.ps1'.
 See log for details.
1个回答

11

默认情况下,Chocolatey的命令超时时间为45分钟(2700秒),如此文档所述:

https://chocolatey.org/docs/chocolatey-configuration#general

如果Meteor安装程序的下载时间超过了这个时间,您可以使用类似于以下命令的命令来更改该值:

choco config set --name <nameFromBelow> --value <value>
例如,就您的情况而言:
choco config set --name commandExecutionTimeoutSeconds --value 5400

或者,如果你只想将此超时应用于单个命令,可以尝试:

choco install meteor --execution-timeout 5400

如错误输出所述。


感谢 @Gary 宝贵的时间。我尝试了 choco install meteor --execution-timeout 10000,但是出现了许多其他错误,哈哈。 - Ankur Soni

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接