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
{{ message }}
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
Attempting to follow installation instructions from here:
Note: For PowerShell version5.1.14393.206or newer, before installing PSScriptAnalyzer, please install the latest Nuget provider by running the following in an elevated PowerShell session.
PowerShell 7.2.0
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\Windows\System32>Install-PackageProvider Nuget -MinimumVersion 2.8.5.201 –Force
Install-PackageProvider: No match was found for the specified search criteria for the provider 'Nuget'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.
PS C:\Windows\System32>
Expected behavior
Nuget is installed successfully.
Actual behavior
Error as shown above and repeated here:
Install-PackageProvider: No match was found for the specified search criteria for the provider 'Nuget'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
PS C:\Windows\System32>$error[0] |Select-Object*
PSMessageDetails :
Exception : System.Exception: No match was found for the specified search criteria for the provider
'Nuget'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check
if the specified package has the tags.
TargetObject : Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider
CategoryInfo : InvalidArgument: (Microsoft.PowerShel…tallPackageProvider:InstallPackageProvider)
[Install-PackageProvider], Exception
FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>,<No file>: line 1
PipelineIterationInfo : {0,1}
Environment data
PS C:\Windows\System32>$PSVersionTable
Name Value
---------
PSVersion 7.2.0
PSEdition Core
GitCommitId 7.2.0
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS C:\Windows\System32> (Get-Module-ListAvailable PSScriptAnalyzer).Version |ForEach-Object { $_.ToString() }
InvalidOperation: You cannot call a method on a null-valued expression.
The text was updated successfully, but these errors were encountered:
Goal
Attempting to follow installation instructions from here:
Steps to reproduce
pwsh
Expected behavior
Nuget is installed successfully.
Actual behavior
Error as shown above and repeated here:
Environment data
The text was updated successfully, but these errors were encountered: