echo " You need to source nvm before you can use it. Do one of the following or similar depending on your shell (and then restart your shell): echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc You can now install node.js versions (e.g. nvm install 10) and activate them (e.g. nvm use 10). init-nvm.sh is a convenience script which does the following: " cat /usr/share/nvm/init-nvm.sh echo " You may wish to customize and put these lines directly in your .bashrc (or similar) if, for example, you would like an NVM_DIR other than ~/.nvm or you don't want bash completion. See the nvm readme for more information: https://github.com/creationix/nvm " # vim:set ts=2 sw=2 et: