ubuntu upgrade npm code example Example: upgrade node ubuntu sudo npm cache clean -f sudo npm install -g n sudo n stable