Unable to resolve package

Hello

I used to run the Install-Module to update my code for pwps_dab

Now I get this message

"WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'."

Any idea what need to be done to allow the install-Module to run?

Parents
  • Luc,

    Try these steps:

    Start a PowerShell ISE (x86) session As Administrator and execute this command to remove any older 32-bit versions:

    Uninstall-Module -Name PWPS_DAB -AllVersions -Force

    Then Start a PowerShell ISE (64 bit) session As Administrator and execute these commands:

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
    
    Uninstall-Module -Name PWPS_DAB -AllVersions -Force
    
    Install-Module -Name PWPS_DAB
    
    Show-PWPS_DABChangeLog
    

    You should put the "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 " line in your PS Profile as a way to force the use of TLS 1.2.

Reply
  • Luc,

    Try these steps:

    Start a PowerShell ISE (x86) session As Administrator and execute this command to remove any older 32-bit versions:

    Uninstall-Module -Name PWPS_DAB -AllVersions -Force

    Then Start a PowerShell ISE (64 bit) session As Administrator and execute these commands:

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
    
    Uninstall-Module -Name PWPS_DAB -AllVersions -Force
    
    Install-Module -Name PWPS_DAB
    
    Show-PWPS_DABChangeLog
    

    You should put the "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 " line in your PS Profile as a way to force the use of TLS 1.2.

Children