Run the following commands:
sudo npm cache clean -f sudo npm install -g n sudo n stable sudo n latest