current position:Home>Yarn in vscode cannot load file

Yarn in vscode cannot load file

2021-08-27 07:57:11 Want Rua puppies

Problem description : vscode in yarn : Unable to load file C:\Users\Admin\AppData\Roaming\npm\yarn.ps1, Because scripts are not allowed to run on this system

image.png

yarn : Unable to load file C:\Users\Admin\AppData\Roaming\npm\yarn.ps1, Because scripts are not allowed to run on this system .

resolvent :

  • Run as administrator vscode; Or it can be opened directly powershell
  • perform :get-ExecutionPolicy, Show Restricted, Indicates that the status is prohibited ;
  • perform :set-ExecutionPolicy RemoteSigned;
  • Then execute get-ExecutionPolicy, Show RemoteSigned;

copyright notice
author[Want Rua puppies],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2021/08/20210827075708966T.html

Random recommended