[英]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.