Solve vscode "because prohibit running scripts on this system" error

In learning vue, using npm install in VSCODE, the result being given:

 

 Find the next reason is because the problem PowerShell execution policy.

Solution:


1. Run as administrator vscode

2. Enter the following statement in the terminal

get-ExecutionPolicy;

It will be shown below, which indicates the state is prohibited:

 

3. Then execute the following statement

set-ExecutionPolicy RemoteSigned;

And then perform a search discovery has become

 

After it is no longer a problem.

 

 

 

Reference article:

Aziz friends https://blog.csdn.net/larpland/article/details/101349586

Guess you like

Origin www.cnblogs.com/HDWdemo/p/12040203.html