Saya menemukan manajemen paket Windows 10 tidak terlalu intuitif. Di bawah ini adalah petualangan saya dalam mencoba menginstal VLC, yang kedengarannya seperti kasus uji yang sangat umum untuk manajer paket.
Find-Package vlc
Nggak
Find-Package -Update
Nggak
Install-Package --help
Nggak
Install-Package /?
Nggak
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
Nggak
Register-PackageSource -Name chocolatey -Location http://chocolatey.org/api/v2 -Provider PSModule -Trusted -Verbose
Mungkin?
Install-Package vlc
WARNING: The module 'vlc' cannot be installed or updated because it is not a properly-formed module.
Nggak
Install-Package -Name VLC
Install-Package : No match was found for the specified search criteria and package name 'VLC'.
Find-Package -Name VLC
menemukan sesuatu untukmu? Juga, periksa apakah itu case sensitif.
Find-Package -Name VLC
Paket-Temukan: Tidak ditemukan kecocokan untuk kriteria pencarian yang ditentukan dan nama paket 'VLC'. Pada baris: 1 karakter: 1 + Cari-Paket -Nama VLC + ~~~~~~~~~~~~~~~~~~~~~ + + KategoriInfo: ObjectNotFound: (Microsoft.Power ... ets .FindPackage: FindPackage) [Cari-Paket], Pengecualian + FullyQualifiedErrorId: NoMatchFoundForCriteria, Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
update-help
pertama.
Install-Package -Name VLC
.