VSCode 终端进程命令无法启动 [英] VSCode terminal process command failed to launch
本文介绍了VSCode 终端进程命令无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在试用 Hello World 示例延期.但是当我从运行扩展"任务运行扩展时.它给出了以下错误:
I am trying out the Hello World sample extension. But when I run the extension from the 'Run Extension' task. It gives the following error:
The terminal process command '/bin/zsh -c 'npm run watch'' failed to launch (exit code: 127)
但是我能够从终端运行上述命令而没有任何错误.
But I am able to run the above command from terminal without any errors.
推荐答案
刚发现这个 https://github.com/microsoft/vscode/issues/76542 对于我在 OSX 中使用 code .
从终端打开代码显然是一个问题,并且可以通过检查设置终端来修复>集成:继承Evn从VSCode继承环境
Just found this https://github.com/microsoft/vscode/issues/76542 For me in OSX apparently is an issue when opening code from the terminal with code .
and can be fixed by checking in settings Terminal>Integrated: Inherit Evn to inherit the environment from VSCode
这篇关于VSCode 终端进程命令无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文