Due to the way nvm is designed, you have to source it before you can use it:
source /usr/share/nvm/init-nvm.sh
You will probably want that in your shell startup file, e.g.:
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
See nvm.install or the upstream README for more details.
Pinned Comments
tomwadley commented on 2020-09-04 22:14
Due to the way nvm is designed, you have to source it before you can use it:
You will probably want that in your shell startup file, e.g.:
See nvm.install or the upstream README for more details.