巧克力在等待命令完成时超时。 [流星]
chocolatey timed out waiting for the command to finish. [METEORJS]
只是为了试用,我亲自动手使用 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.
默认情况下,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
如错误输出中所述。
只是为了试用,我亲自动手使用 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.
默认情况下,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
如错误输出中所述。