I just installed Node.js and npm (for additional modules).
Node.js
npm
How can I update Node.js and the modules which I\'m using to the latest versions
Just run the following command in terminal as root/administrator:
npm i -g n n stable npm update -g npm
It has worked for me on Linux