ubuntu update node 8 to 12 code example Example: update node ubuntu sudo npm cache clean -f sudo npm install -g n sudo n stable