如何成功升级Chocolatey

the*_*ng2 6 chocolatey

尝试升级 Chocolatey 对我来说失败了:

> choco upgrade chocolatay
Chocolatey v0.11.2
Upgrading the following packages:
chocolatay
By upgrading, you accept licenses for the packages.
chocolatay is not installed. Installing...
chocolatay not installed. The package was not found with the source(s) listed.
 Source(s): 'https://community.chocolatey.org/api/v2/'
 NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
 the package may not be found.
Run Code Online (Sandbox Code Playgroud)

有办法摆脱这种困境吗?

choco upgrade chocolatay -f
Run Code Online (Sandbox Code Playgroud)

具有大致相同的结果。

mar*_*c_s 7

看起来这只是一个拼写错误 - 该产品称为Chocolatey ( y之前有一个e - 而不是“a”) - 所以试试这个:

choco upgrade chocolatey
Run Code Online (Sandbox Code Playgroud)

你应该没问题:-)