因为在此系统上禁止运行脚本。有关详细信息

yarn : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go

.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ yarn
+ ~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

 

 

用管理员身份运行 PowerShell,然后输入set-executionpolicy remotesigned,再输入y确认即可

 

posted @ 2023-02-11 00:15  小杨观世界  阅读(164)  评论(0编辑  收藏  举报