Changing node version

sudo npm cache clean -f
sudo npm install -g n
sudo n 5.1.0

Changing npm version

npm install -g npm@2.4.0