Loading... 遇到过多次了 ~~~powershell #错误 Vscode 无法将xx识别cmdlet、函数、脚本文件或者可运行程序的名称 #或者 yarn : 无法加载文件 C:\Users\user\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有 关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 1 + yarn + ~~~~ + CategoryInfo : SecurityError: (:) [],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess ~~~ 很多教程都是说修改系统环境变量 但是环境变量是没有问题的 只需要一行代码:在powershell管理员模式下 ```shell set-ExecutionPolicy RemoteSigned ``` 最后修改:2022 年 12 月 22 日 © 允许规范转载 打赏 赞赏作者 支付宝 赞 0 如果觉得我的文章对你有用,请随意赞赏