【发布时间】:2020-10-31 09:15:00
【问题描述】:
在执行管道时,我有以下 PowerShell cmdlet 来安装 PowerShell 模块
steps:
- powershell: |
Install-PackageProvider Nuget -Scope CurrentUser -Force
Install-module PSScriptAnalyzer -force -Scope CurrentUser
Install-module PSPesterTest -force -Scope CurrentUser
displayName: 'Install required PowerShell modules'
但这会引发"No repository with the name 'PSGallery' was found" 的错误。
请任何人指出有关此问题的解决方法?
【问题讨论】:
标签: azure azure-devops azure-powershell