Scoop更新pwsh

# 碎碎念

记录下Scoop更新pwsh会遇到的问题

# 问题

https://github.com/ScoopInstaller/Scoop/issues/4893
提示pwsh正在运行无法更新

# 解决

  • 打开Powershell.exe
  • 执行
1
scoop update pwsh

# 新问题

1
scoop.ps1 cannot be loaded because the execution of scripts is disabled on this system.

# 解决方式

1
Set-ExecutionPolicy -ExecutionPolicy Unrestricted

# 参考

https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system

comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计