Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The solution that the terminal can't execute the command in vscode

Shulou Source: shulou.com Published: 2022-06-02 15:25:13 09月30日 Update

Editor to share with you the vscode terminal can not execute the command solution, I hope you will learn something after reading this article, let's discuss it together!

What if the terminal in vscode cannot execute the command?

Today, I want to try the vs code compiler. After installation, I open the project and want to execute some commands with the terminal. However, I encountered a pit at the beginning, as shown in the following figure:

The terminal does not recognize npm and node? What the hell! So, I went to cmd and found that cmd can be used normally.

After probing around, we finally found a solution. Turn on the compatibility in the vs code attribute, check to run as administrator, and then apply

Restart vs code and you can run the terminal command!

After reading this article, I believe you have a certain understanding of "the solution that the terminal in vscode cannot execute commands". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!

Tags: Terminals commands methods articles runs compatibility Quartet done Properties beginnings what to do Solutions more knowledge administrators compilers Industries Solutions Information Information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker MariaDB Linux Apple