Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode terminal process command failed to launch

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.

like image 919
Labhansh Agrawal Avatar asked Jan 15 '19 08:01

Labhansh Agrawal


1 Answers

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

like image 121
Lucas deGomez Avatar answered Sep 17 '22 11:09

Lucas deGomez