I installed nvm, as per the install instructions here, and it works fine if I type stuff in directly into the command line.
For example
And it runs fine. I understand that the nvm command works because of these couple of lines that are added to .profile:
But whenever running any script or trying to use the commands nohup, immortal, or dtach, it can't find the nvm command.
I'm new to FreeBSD (and loving it!), so maybe I don't understand how .profile works. Any ideas?
For example
sh:
$ nvm ls
And it runs fine. I understand that the nvm command works because of these couple of lines that are added to .profile:
sh:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
But whenever running any script or trying to use the commands nohup, immortal, or dtach, it can't find the nvm command.
sh:
$ nohup nvm ls
sh:
nohup: nvm: No such file or directory
sh:
$ dtach -A /tmp/mk14 nvm install 14
dtach: could not execute nvm: No such file or directory
I'm new to FreeBSD (and loving it!), so maybe I don't understand how .profile works. Any ideas?