VSCode报错The terminal process failed to launch...

509 阅读1分钟

今天打开VSCode控制台想执行npm命令运行项目,结果报了下面这样的错误: The terminal process failed to launch:Access was denied to...... image.png 网上大都在说配置一个叫 launch.json 的文件,但是没有效果。

实际上只需要打开设置,然后搜索 terminal default Profile ,然后把下图中箭头所指的位置改为Command Prompt就可以了。 image.png