how to upgrade node to version 10 code example
Example 1: update node js version ubuntu
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Example 2: udpate node terminal windows
#Run PowerShell as Admin
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade