执行 yarn install后报错:无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统中禁止执行脚本。


执行 yarn install后报错:

无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1,因为在此系统中禁止执行脚本。

 

 

 

解决办法:

管理员运行powershell (win7位置在:C:\Windows\System32\WindowsPowerShell\v1.0)

执行:set-ExecutionPolicy RemoteSigned

 

 

 


原文链接:https://blog.csdn.net/L_melody/article/details/118480552


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM