我发现Windows 10软件包管理不是很直观。以下是我尝试安装VLC的经历,这听起来像是软件包管理器中非常常见的测试用例。
Find-Package vlc
不
Find-Package -Update
不
Install-Package --help
不
Install-Package /?
不
Install-Package vlc
The provider 'nuget v2.8.5.127' is not installed.
nuget may be manually downloaded from https://oneget.org/nuget-anycpu-2.8.5.127.exe and installed.
Would you like PackageManagement to automatically download and install 'nuget' now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
Install-Package : No match was found for the specified search criteria and package name 'vlc'.
At line:1 char:1
+ Install-Package vlc
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
不
Register-PackageSource -Name chocolatey -Location http://chocolatey.org/api/v2 -Provider PSModule -Trusted -Verbose
也许?
Install-Package vlc
WARNING: The module 'vlc' cannot be installed or updated because it is not a properly-formed module.
不
Install-Package -Name VLC
Install-Package : No match was found for the specified search criteria and package name 'VLC'.
有没有
—
MC10 2015年
Find-Package -Name VLC
找到适合您的东西?另外,请检查是否区分大小写。
Find-Package -Name VLC
查找包:找不到与指定搜索条件和包名称“ VLC”匹配的内容。在第1行:1字符:1 +查找包-名称VLC + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:ObjectNotFound:(Microsoft.Power ... ets .FindPackage:FindPackage)[Find-Package],例外+ FullyQualifiedErrorId:NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
您可能想先做
—
BrunoLM
update-help
。
Install-Package -Name VLC
。