This post was updated 910 days ago and some of the ideas may be out of date.
1.运行yarn命令时候出现
无法加载文件 C:\Users\xxx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。

2.以管理员身份运行PowerShell

3.输入命令 set-ExecutionPolicy RemoteSigned

4.输入命令 set-ExecutionPolicy 查看设置是否成功

5.运行yarn命令,运行成功!

参与讨论