几周前,这个错误开始出现。
Set-PSRepository : The specified Uri 'http://*****' for parameter
'SourceLocation' is an invalid Web Uri.
Please ensure that it meets the Web Uri requirements.
我不知道如何解决这个没有卸载 Powershell 的问题。StackOverflow 上有一个可用的解决方法,但它很笨重,不会长期为我工作。
坦率地说,我宁愿只找到 PSRepositories 的存储位置,并在需要时手动编辑文件。