当前位置:网站首页>In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system

In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system

2022-06-11 20:47:00 Fall in love_

IDEA in , function yarn command , Show unable to load file , Because running scripts is disabled on this system

  • function :yarn -v Report errors

[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-wTEt5rYP-1654754544975)(C:\Users\zhangwei\AppData\Roaming\Typora\typora-user-images\image-20220609135632699.png)]

  • Run the command :get-ExecutionPolicy, Show Restricted: Indicates restricted execution .

  • Set up ExecutionPolicy Value , Run the command : set-ExecutionPolicy -Scope CurrentUser

  • Set the value to : RemoteSigned

 Insert picture description here

  • Check the current value , Run the command :get-ExecutionPolicy, Is shown as RemoteSigned
    by RemoteSigned
  • Run again yarn command , The successful running
原网站

版权声明
本文为[Fall in love_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206112045408845.html