针对github上部分安装错误的解决方案

报错: yarn : 无法加载文件 C:\Users\1\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。

 

解决方案:

  1.电脑搜索 powershell  

  2.以管理员的身份进行运行

  3.使用set-ExecutionPolicy RemoteSigned

  4.回复y

  5.yarn config get registry 

  6.yarn config get registry

  7.可以针对不同的命令进行自己的安装依赖

  8.最后的进行运行起来 yarn run dev

posted @ 2022-07-01 16:28  一封未寄出的信  阅读(136)  评论(0)    收藏  举报