Tom*_*mek 3 powershell powershellget
尝试运行 Register-PsRepository 时出现以下错误
我试过了:
有任何想法吗?
PS C:\> Register-PSRepository -Name MyRepo -SourceLocation https://MyRepo.com/api/Myrepo -Credential $c
PackageManagement\Register-PackageSource : The property 'Name' cannot be
found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PSModule.psm1:4631 char:17
Run Code Online (Sandbox Code Playgroud)
小智 5
请检查 PSRepository 配置 xml 文件:
%localappdata%\Microsoft\windows\PowerShell\PowerShellGet\PSRepositories.xml
文件可能已损坏,这可能会导致您遇到错误。
| 归档时间: |
|
| 查看次数: |
1752 次 |
| 最近记录: |