当尝试运行时,我会遇到以下错误
我试过:
有什么想法吗?
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发布于 2018-05-08 15:03:13
请检查PSRepository配置xml文件:
%localappdata%\Microsoft\windows\PowerShell\PowerShellGet\PSRepositories.xml
有可能文件已损坏,这可能会导致您正在获取的错误。
https://stackoverflow.com/questions/50211425
复制相似问题