2016-08-18 48 views
0

幾個星期前,這個錯誤開始彈出。如何修復Powershell Register-PSRepository的「無效Web Uri」?

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的存儲位置,並在需要時手動編輯這些文件。

+0

找到它了:$ env:LOCALAPPDATA \ Microsoft \ Windows \ PowerShell \ PowerShellGet \ – user1869558

回答

相關問題