解决方法:打开PowerShell(在小娜里搜就行),输入set-executionpolicy remotesigned,之后选择Y,问题就解决了。
无法加载文件 XXX,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft问题解决
PS C:\Users\Administrator\vue-vben-admin> yarn serve
yarn : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https://fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
无法加载文件 XXX 因为在此系统上禁止运行脚本。有关详细信息 请参阅 https:/go.microsoft问题解决