upgrade node version 8 to 10 code example Example: update node js version ubuntu sudo npm cache clean -f sudo npm install -g n sudo n stable