yarn install
进行安装包,出现了下面的错误提示:
yarn : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统因为在此系统上禁止运行脚本。
解决方法:
1、在windows搜索powershell,右键以管理员身份运行

2、在本地计算机上运行您编写的未签名脚本和来自其他用户的签名脚本,使用以下命令将计算机上的 执行策略更改为 RemoteSigned
执行:
set-ExecutionPolicy RemoteSigned选择Y,回车

3、运行
get-ExecutionPolicy查看执行策略:

再次运行
yarn install
,发现问题解决了部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!