1、问题描述
在vscode命令行执行yarn命令时报错:
yarn : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microso
ft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
2、分析解决
1)搜索powershell,右键以管理员身份运行
2)输入:set-ExecutionPolicy RemoteSigned
然后:输入 y
3)关闭命令窗口 即可