jasongin/nvs

VS Code + npm script runner + nvs

Orbis1 opened this issue · 0 comments

OS: fedora 35

IDE: Visual Studio Code

Error:

Executing task: npm run test <
/usr/bin/bash: line 1: npm: command not found
The terminal process "/usr/bin/bash '-c', 'npm run test'" failed to launch (exit code: 127).

Please help me with setting of my workflow in VS Code.
I'm using npm script runner, but on linux it does't work well.
When new terminal created, it doesn't know about location of node/npm
It looks like I need to add "nvs use lts" before script runner. How can I achieve it?

gnome-shell-screenshot-3f1x8z