Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet

后端 未结 10 940
刺人心
刺人心 2020-12-14 05:50

I was trying to install Azure using Install-Module Azure in PowerShell. I got the following error:

PS C:\\Windows\\system32> Install-Module A         


        
10条回答
  •  醉话见心
    2020-12-14 06:51

    I think the above answer posted by Jeremy Thompson is the correct one, but I don't have enough street cred to comment. Once I updated nuget and powershellget, Install-Module was available for me.

    Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force 
    Install-PackageProvider -Name Powershellget -Force
    

    What is interesting is that the version numbers returned by get-packageprovider didn't change after the update.

提交回复
热议问题