🔍 问题
Win10 PowerShell5.1 安装dsh失败
安装 · 源自讨论 #7323 · 更新于 2026-09-22 23:41
Win10 PowerShell5.1 安装dsh失败
node-pty 生命周期脚本由 powershell.exe -c 执行,Windows PowerShell 5.1 不支持 || 运算符
把 npm 的 script-shell 改为 PowerShell 7 或 cmd.exe,安装即可成功完成
安装前将 npm script-shell 切到 PowerShell 7 或 cmd