Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report