Google logo
4.9 on Google
Get a free Magento audit

Recommendations on page speed, accessibility issues, and real user experience data

Skip to main article

Upgrade to newest version of Node.js – Mac OS X

Upgrade to newest version of Node.js – Mac OS X
10 mins

Develo is a leading Magento agency and eCommerce web development company based in Birmingham, in the UK, serving clients globally since 2010.

For me, the easiest way to manage node.js versions is with the n version manager npm package.

To install this package simply run:

npm install -g n

npm cache clean -f

You may need to include sudo at the start if you get an EACCES error.

With the n version manager installed, you can upgrade to the latest stable version of node with the following two commands:

sudo n stable

npm update -g

You can check your current node version by running:

node -v

Last updated: April 16, 2024

Want to learn more about our services or speak to us about a project?