Answer the question
In order to leave comments, you need to log in
How to run npm scripts in vs code via wsl subsystem?
The node is installed in wsl.
If the script is typed and run manually, then everything works, but if I run the same script from the npm scripts block (that is, which vs code pulled up myself), then an error occurs:
The terminal process "C:\WINDOWS\System32\wsl. exe - e npm run start" failed to launch (exit code: 1)
Is there any way to solve this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question