Home > Development Tools > VSCode > body text

vscode cannot execute program scripts in the terminal

王林
Release: 2020-02-11 14:40:28
Original
5696 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template