yarn : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Executi
on_Policies。
所在位置 行:1 字符: 1
- yarn add superagent
+ CategoryInfo : SecurityError: (:) [],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
解决方法:
1,打开powershell ,以管理员身份运行;
2,输入:
set-ExecutionPolicy RemoteSigned
3,执行策略 输入 :y
4,最后,输入:
get-ExecutionPolicy
完成,关闭powershell ,重新回到yarn安装界面重新安装即可。