Description
Issue Description
When I start Powershell Extension, VSCode warns me about a conflict with the current version of PackageManagement module and recommend me to update it. When I run command :
powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber
It gives error :
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2/'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'PackageManagement'. Try Get-PSRepository to see all available
registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
When I try to run the same command from my OS's powershell console, it works as expected.
I use TLS1.2 as security protocol.
Kind regards
Environment Information
Visual Studio Code
Name | Version |
---|---|
Operating System | Windows_NT x64 6.3.9600 |
VSCode | 1.46.0 |
PowerShell Extension Version | 2020.6.0 |
PowerShell Information
Name | Value |
---|---|
PSVersion | 5.1.14409.1018 |
PSEdition | Desktop |
PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.14409.1018 |
BuildVersion | 10.0.14409.1018 |
CLRVersion | 4.0.30319.42000 |
WSManStackVersion | 3.0 |
PSRemotingProtocolVersion | 2.3 |
SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
Extension | Author | Version |
---|---|---|
code-spell-checker | streetsidesoftware | 1.9.0 |
csharp | ms-dotnettools | 1.22.0 |
csharp2ts | rafaelsalguero | 0.0.24 |
debugger-for-chrome | msjsdiag | 4.12.8 |
githistory | donjayamanne | 0.6.5 |
mssql | ms-mssql | 1.9.0 |
powershell | ms-vscode | 2020.6.0 |
react-native-snippet | jundat95 | 0.5.6 |
vscode-docker | ms-azuretools | 1.2.1 |
vscode-eslint | dbaeumer | 2.1.5 |
vscode-react-native | msjsdiag | 0.16.0 |
vscode-typescript-tslint-plugin | ms-vscode | 1.2.3 |
xml | DotJoshJohnson | 2.5.0 |