【问题标题】:chocolatey timed out waiting for the command to finish. [METEORJS]巧克力超时等待命令完成。 [流星]
【发布时间】:2018-03-20 13:28:08
【问题描述】:

只是为了试用,我开始使用 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.

【问题讨论】:

    标签: meteor chocolatey


    【解决方案1】:

    默认情况下,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,但出现了许多其他错误,哈哈
    猜你喜欢
    • 1970-01-01
    • 2011-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-03
    • 2015-06-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多