在win11新系统中运行相应脚本 pnpm install 时,报错
pnpm : 无法加载文件 C:\Program Files (x86)\nodejs\pnpm.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.
microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
解决方案:
- 以管理员身份运行 PowerShell
- set-ExecutionPolicy RemoteSigned
- 选择Y