Upgrade your Node to the latest version on Mac 2022

I often use Mac computer when I travel so I need to maintain an updated version of development tools e.g., Node.js.

Here’s a simple way of upgrading your node to the latest stable version.

  1. Open your console to check your current node version.
    • $ node -v
    • v x.x.x
  2. Install n package using npm
    • sudo npm install -g n
  3. Update your node.js using stable version
    • sudo n stable
  4. After that, check your node.js version again to see the latest version.
    • $ node -v
    • v x.x.x

That’s it.

Support @QUE.COM

Founder, QUE.COM Internet Media. | Founder, Yehey.com a Shout for Joy! | MAJ.COM Management of Assets and Joint Ventures. More at KING.NET Ideas to Life.

Leave a Reply