update node 8 to node 10 in mac code example Example: update nodejs mac sudo npm cache clean -f sudo npm install -g n sudo n stable/lts