簡體   English   中英

Cloudn't register-PSRepository 在我的 Windows10 中安裝 Azure PowerShell

[英]Cloudn't register-PSRepository in my Windows10 for installing Azure PowerShell

我想在我的 Windows 10 中安裝 Azure PowerShell,但我遇到了錯誤消息,我試圖找出錯誤的原因,但在運行Get-PSRepository時發現沒有包。

背景:使用以下代碼安裝 azure:

Install-Module -Name Az -AllowClobber -Scope AllUsers

Install-Module -Name Az -Repository PSGallery -Force

錯誤信息:

C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:1748找不到包

Register-PSRepository -Default

Get-PSRepository顯示找不到包。

net winhttp show proxy顯示沒有代理服務器

我應該怎么做才能安裝 azure PowerShell?

根據您的錯誤消息,您似乎有與powershell 庫的連接問題

所以,我的第一個建議是檢查你的網絡環境工作。 還記得檢查您的系統代理設置。

如果你的網絡沒有問題,你可以手動下載包,然后從下載的nuget包中安裝模塊

另一種選擇是使用Azure Cloud Shell

希望以上內容對您有所幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM