This is worthy of my up vote because I've tried setting up phoenix framework on fresh Ubuntu and it's a pain in the ass
Most of my problem was with Node.js and not with Erlang or Elixir.
There's some not-built-in apt repos to fix it
Just remember to set a default, e.g. if you're mostly using Node for Phoenix: `nvm alias default 5`.
It also sets up your global modules directory so that you don't need sudo to install global modules like gulp-cli (should you need any, though it's quite rare that you do nowadays).