使用勺子更新PWSH?

发布于 2025-01-30 02:39:22 字数 170 浏览 4 评论 0原文

尝试通过scoop更新PWSH来更新PowerShell Core时,我会收到以下错误:
错误应用程序“ PWSH”仍在运行。关闭所有实例,然后重试。
我尝试关闭PowerShell并通过CMD进行更新,但仍会引发该错误。

When trying to update Powershell Core with scoop via scoop update pwsh, I get the following error:
ERROR Application "pwsh" is still running. Close all instances and try again.
I tried closing PowerShell and updating via cmd, but it still throws that error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

執念 2025-02-06 02:39:22

SCOOP使用pwsh.exe执行Scoop运行的PowerShell脚本。 ( scoop 是96%的powershell),即使在cmd.exe中运行,仍将使用pwsh.exe执行scoop Update PWSH所需的脚本。通过使用Windows PowerShell(又称PowerShell 5/PowerShell.exe)来解决此问题,因此SCOOP将使用该sc执行PowerShell脚本,而不是pwsh

Scoop uses pwsh.exe to execute the PowerShell scripts that scoop runs on. (scoop is 96% PowerShell) Even if run in cmd.exe, it will still use pwsh.exe to execute the scripts needed to scoop update pwsh. This problem is solved by using Windows PowerShell, (a.k.a. PowerShell 5 / powershell.exe) so scoop will execute the PowerShell scripts using that instead of pwsh.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文