Back

windows - node - yarn: 无法加载文件 C:\Users\xx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本

发布时间: 2023-09-26 11:36:00

refer to:
https://blog.csdn.net/qq_39290878/article/details/109738433

yarn : 无法加载文件 C:\Users\xx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies

1. 管理员运行 power shell

2. Set-ExecutionPolicy RemoteSigned

3. Get-ExecutionPolicy

确认一下就可以了。

yarn就可用了。

Back