How to use babel-node with nvm in VisualStudio code?

What can I do for tasks.jsonand launch.jsonin vscodeto get them to run things with help babel-nodealong with nvm? It only launches babel-node with the globally installed node, and not the specific NVM executable. Is there a way to set the PATH environment variable?

I want to test it by printing process.versionfrom the program and making sure that it prints the version of node I was expecting.

+4
source share

Source: https://habr.com/ru/post/1658456/


All Articles