我不能在Powershell中使用与"模块"相关的命令。它挂着闪烁的破折号。
例如,我尝试过:
Install-Module posh-git -Scope CurrentUser
或者:
Find-Module -Name PowerShellGet
这两个命令都给了我一个闪烁的破折号。。。
所以我不知道该怎么办。有缓存吗?另外,由于它是Windows 10的一部分,我无法卸载和重新安装它?
谢谢。
Windows 10家庭版2004Powershell 5.1
PowerShellGallery已经出现了一些奇怪的中断和延迟数周,这影响了查找模块/安装模块/查找PSResource/安装PSResource。
它不仅影响你。
更多信息:https://github.com/PowerShell/PowerShellGallery/blob/master/psgallery_status.mdhttps://github.com/PowerShell/PowerShellGallery/issues/132
偶数https://powershellgallery.com有一段时间坏了。