I have installed nvm
and it was appended to my /home/www-data/.bashrc
Calling nvm
works.
bash
nvm
works
but
$ bash -c nvm
bash: nvm: command not found
does not work.
same when I specific the rcfile
$ bash --rcfile /home/www-data/.bashrc -c "nvm"
bash: nvm: command not found
Why is that?
In the end-result I want to use nvm in RoboFile exec() command and tried to wrap it into bash -c
because nvm
is a bash function and not a real script.