pnpm无法在powershell运行

55 阅读1分钟

image.png

解决方法

PowerShell 默认可能限制脚本执行。运行以下命令检查当前策略:

Get-ExecutionPolicy

如果结果是 Restricted,需要更改为 RemoteSigned 或 Unrestricted

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

(选择 Y 确认更改)