The solution that the terminal can't execute the command in vscode
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!