Home > Article > Development Tools > vscode cannot execute program scripts in the terminal
Cause:
PowerShell execution policy problem.
The solution is as follows:
1. Right-click the VSCode icon and select Run as administrator;
2. Execute get-ExecutionPolicy in the terminal and it will display Restricted, which means The status is prohibited;
3. At this time, execute set-ExecutionPolicy RemoteSigned;
4. At this time, execute get-ExecutionPolicy again, and RemoteSigned is displayed, which means that the status is unlocked and can be run.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of vscode cannot execute program scripts in the terminal. For more information, please follow other related articles on the PHP Chinese website!