Question: how to do node update?
Answer: First Check the version of installed npm using npm -v and then update it to latest version using npm install npm@latest -g. To update Node, you'll need npm's handy n module. ...  sudo npm cache clean -f sudo npm install -g n sudo n stable.