-> yarn install
yarn : 无法加载文件 C:\Users\DELL\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 abou
t_Execution_Policies。
所在位置 行:1 字符: 1
+ yarn install
+ ~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
因为在此系统上禁止运行脚本
解决方案:
1、搜索powershell,右键以管理员身份运行
2、若要在本地计算机上运行您编写的未签名脚本和来自其他用户的签名脚本,
请使用以下命令将计算机上的 执行策略更改为 RemoteSigned
执行:
set-ExecutionPolicy RemoteSigned
输入 :y(确认)
3、查看执行策略:
get-ExecutionPolicy
571

被折叠的 条评论
为什么被折叠?



