Hi there
I want to use Express. I have looked at your site: https://www.digitalocean.com/community/tutorials/how-to-install-express-a-node-js-framework-and-set-up-socket-io-on-a-vps
The first steps was to :1) sudo apt-get install curl git 2) curl https://raw.github.com/creationix/nvm/master/install.sh | sh

I have tried those two installations, and then test if the installations was right installed by typing nvm - but I got the message “nvm: command not found”

I hope to hearing from you.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


When it comes to using nvm, you’ll need to log out of the SSH session (using exit) and then log back in to be able to use the nvm command. The reason for this is because during the set up, it sets an alias for the command and it doesn’t appear to auto-source the alias.

Once you log out of SSH and then log back in, you should be able to use the nvm alias as expected.