Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Great, thanks!
The only line that didn’t work for me is “source ~/.bash_profile”.
I (on Ubuntu 12.04) had to do “source ~/.bashrc” and “source ~/.profile” .
Another problem I just encountered is that, after reboot, the node version goes back to the previous one (see also this SO post: http://stackoverflow.com/questions/9170713/node-js-version-goes-back-to-0-4-form-0-6-on-reboot-nvm ). To solve this, I had to add the line “nvm use xxx” to my .profile script.
From what I see, .profile starts nvm and that will set the $PATH correctly.
I have found that when using non-login shell (for example an SSH terminal), the .profile does not get sourced. I found some info about how to deal with it:
I ended up moving: [ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM from .profile to .bashrc
Another way to solve this is to use nvm-global: https://github.com/xtuple/nvm
This tutorial didn’t work on the LAMP droplet, it asked me to install git first (the tutorial says you can do it later). So I tried installing git and THAT didn’t work <grumble> Here are the required steps that work for the LAMP stack image: apt-get install git-core (which fails) apt-get update (which works) apt-get install git-core (which now works) curl https://raw.github.com/creationix/nvm/master/install.sh | sh (which now works) n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local (which fails) cd ~ cp -r .nvm/v0.10.13/bin/node /usr/local (which works)
I very much appreciate the effort Digital Ocean is making in these tutorials, but they are either not configuring some of their droplet images properly or these instruction don’t work across all versions of unix. This tutorial was marked ‘beginner’ and obviously, it was far from that.