Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Error: Unable to find module providers (PowerShellGet) #662

@danpousson

Description

@danpousson

Steps to reproduce

when running: update-module powershellget
error: Update-Module: Module 'powershellget' was not installed by using Install-Module, so it cannot be updated.


when running: get-psrepository
Error: Unable to find module providers (PowerShellGet)

steps to resolve:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted;
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

Environment data

Windows Server OS 2016

> $PSVersionTable
5.1 & 7.1.3
> Get-Module -ListAvailable PowerShellGet,PackageManagement
results:
Directory: C:\program files\powershell\7\Modules
Script     1.4.7                 PackageManagement         
Script     2.2.5                 PowerShellGet

Directory: C:\Program Files\WindowsPowerShell\Modules
Script     1.4.7                 PackageManagement
Binary     1.0.0.1               PackageManagement 
Script     2.2.5                 PowerShellGet
Script     1.0.0.1               PowerShellGet
> Get-PackageProvider -ListAvailable
results
NuGet                    3.0.0.1

contact info:
Dan Pousson
danpousson@gmail.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions