Upgrade Node.js to the latest version on Mac OS

Upgrade Node.js to the latest version on Mac OS

  1. sudo npm cache clean -f (force) clear you npm cache
  2. sudo npm install -g n install n (this might take a while)
  3. sudo n stable upgrade to the current stable version
Source: https://stackoverflow.com/questions/11284634/upgrade-node-js-to-the-latest-version-on-mac-os (Johan Dettmar)

{{ message }}

{{ 'Comments are closed.' | trans }}