VS Code can not run the script (because prohibit running scripts on this system)

problem:

win10 download the reload system can not use the VS Code live-server

prompt:

 

the reason:

When you start Windows PowerShell on a computer, the execution policy is Restricted (default setting).

 

 Restricted execution policy does not allow any scripts to run. 
 AllSigned and RemoteSigned execution policy prevents Windows PowerShell scripts run without digital signature.

For more information about Windows PowerShell execution policy, see about_Execution_Policy.

solve:

View: get-executionpolicy

设置:set-executionpolicy remotesigned

 

Guess you like

Origin www.cnblogs.com/DoubleLoong/p/11653376.html