-
Notifications
You must be signed in to change notification settings - Fork 510
PackageManagement Module Update Problem #2763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PackageManagement Module Update Problem #2763
Comments
This looks very much like the problem I had a few weeks ago. You can't download from the PSGallery because you aren't using TLS1.2. Try using the following before attempting your command: |
I’m using TLS1.2, and it works when I run the command from powershell console. It doesn’t work when I’m in vscode. Even if I install the module via powershell console, when I open vscode, it tries to install again. |
the powershell command to install the update should include the command to use TLS1.2
|
I ran into the same issue after latest vscode-powershell update. The experience of the update is not great. Extension itself offers to perform an upgrade, but never completes that. No good guidance on how to deal with this manually is given too. |
Thanks everyone for commenting on this issue. We need to update our script to accommodate the changes to TLS--we arent working on this at the moment so if anyone would like to open a PR to make this change the change can be made here: |
This command did work for me! Great thank you! :) |
Had a similar issue: updated to the new 2020.6 which caused a bunch of problems:
Eventually what saved me (at least for the moment it seems) was executing the command @MSIH wrote, but with 1 exception: changed -Scope CurrentUser to Allusers=> No more anoying popup about the Packagemanger. Finally I can work again :-) |
Worked perfect :), thanks! |
Still happening, none of the solutions worked for me. I always get "The version '1.4.7' of module 'PackageManagement' is currently in use." |
@mvhecht are you running the preview extension? I believe this is fixed in that extension. |
This worked for me, but had to run VS Code as Administrator first and then run the above command.
Try running VS Code as Administrator. |
Man, I have been having this update issues for months. Glad I stumbled across this. powershell.exe -NoLogo -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope AllUsers -AllowClobber -Verbose' Was the one that worked for me in the end. |
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 :
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
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: