Scripting is forbidden on the system error

I encountered the following error during the development of the project

Running scripts is prohibited, perform the following operations to solve

 

1. win+x to open PowerShell (administrator)


2. set-ExecutionPolicy RemoteSigned //set to open


3. Type Y or A to agree

4. Execute get-executionpolicy to check whether the change is successful, and RemoteSigned indicates success

Below is my execution result

 run the project again

Solve the problem perfectly! !

Guess you like

Origin blog.csdn.net/weixin_47039061/article/details/131397132