VSCode could not load the file... because scripting is prohibited on this system

 Reason: The command line execution policy, which is set to Restricted by default, does not load configuration files or run scripts. Need to change the setting to RemoteSigned

Solution:

1. Run VSCode through administrator

2. Enter the command:

set-ExecutionPolicy RemoteSigned

If you don't run as administrator, you will get the following error

 

Guess you like

Origin blog.csdn.net/qq_59636442/article/details/126652055