First, install nodejs and npm from repository.
Then:
sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100 mkdir -p ~/.new-dir npm config set prefix /path/to/.new-dir npm install -g ember-cli PATH="$PATH:/path/to/.new-dir/bin"
Export PATH variable in your bashrc to avoid retyping.
Test with:
ember -v