// use brew to upgrade node to the latest version brew update brew upgrade node node --version // outputs: v12.x.x // also you can do it with npn sudo npm cache clean -f // clean first sudo npm install -g n // install globally sudo n stable/lts