I'm trying to run a command that depends on nodejs 14 as a child process of my script. For that I use nvm.
Here is my code:
let ex = require("child_process").execSync;
ex( "nvm use 14 & mycommand" );
When I launch my script, I get the message "nvm: command not found".
I use zsh on Archlinux.
Please how can I fix my issue ?