curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install --unsafe-perm --verbose -g sails
npm install -g @angular/cli

https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions