Forum Discussion
otaconjh
Feb 17, 2020Copper Contributor
Package failed to install because: End of Central Directory record could not be found.
Trying to install any package results in a hash mismatch. Here's my verbose output: PS C:\Users\jh> install-module powershellget -verbose -scope AllUsers
VERBOSE: Using the provide...
OwenLanty
Jul 28, 2026Copper Contributor
Do not disable hash validation. Check the repository with `Get-PSRepository`, enable TLS 1.2 in an elevated PowerShell session, and install the official NuGet provider with `Install-PackageProvider NuGet -Force`. Verify the module signature with `Get-AuthenticodeSignature`, discard the damaged archive, and download the same version again from the official PowerShell Gallery.