`nvm` or `node` not available in a script
Source: Troubleshooting reference
nvm.sh is lazy-loaded in interactive shells only. Login profiles put the bin
directory selected by nvm’s default alias on PATH. A standalone
non-interactive script should activate that same alias explicitly:
source "$NVM_DIR/nvm.sh"nvm use default --silent