upgrade node version on mac from 10 to 12 code example Example: upgrading node on mac 1 brew update 2 brew upgrade node