You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PSScriptAnalyzer module should install without issue.
Actual behavior
Occasionally I'm hitting the following exception (occurs roughly 1 out of every 20 times):
WARNING: Source Location
'https://www.powershellgallery.com/api/v2/package/PSScriptAnalyzer/1.23.0' is
not valid.
PackageManagement\Install-Package : Package 'PSScriptAnalyzer' failed to
download.
At C:\Program
Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809
char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Users\Contai...tAnalyze
r.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerSh
ell.PackageManagement.Cmdlets.InstallPackage
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
>$PSVersionTable
TBD - need to get this info injected into our build pipeline where we're seeing this issue (not really an issue seen locally)> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }N/A (module hasn't been installed yet)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Run the command
Expected behavior
The PSScriptAnalyzer module should install without issue.
Actual behavior
Occasionally I'm hitting the following exception (occurs roughly 1 out of every 20 times):
If an unexpected error was thrown then please report the full error details using e.g.
$error[0] | Select-Object *
Environment data
The text was updated successfully, but these errors were encountered: