Problem installing node.js and Express

July 26, 2017 191 views
Node.js

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.

1 Answer

@gormdrachmann

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.

Have another answer? Share your knowledge.