@
@
@Pisht2021-03-02 00:32:44
Visual Studio Code
@Pisht, 2021-03-02 00:32:44

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

1 answer(s)
P
Pisht, 2021-04-02
_

Perhaps it will come in handy for someone: the problem was that this vs code functionality (running npm scripts directly from the program) is not always friendly with nvm. Solution: either install a node without nvm, or use another manager (for example, n ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question