Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

How To Update Node Version On Mac Using Terminal?

Spread the love

In this article, I am going to share how how to update node version on mac using terminal

After a long search on internet, I found partial solutions. May be they have worked for them. But they didn’t work for me.

I am going to explain you what I have done to upgrade my node versions.

Update Node Version On Mac Using Terminal

So, I was running v15.14.0 and I want to upgrade my node version to v16.15.0 which is a stable version as per the date I am writing this article.

The primary solution I found is,

1. Cleaning the NPM cache

sudo npm cache clean -f

2. Installing node

sudo npm install -g n

3. Install stable version of node

sudo n stable

That’s it. Node version is updated in your machine. BUT, It didn’t work on my machine.

Someone told to reboot the terminal or machine to see the updated version. But, it didn’t work either.

Then, I searched for other solutions and I found one. NVM is already installed in my machine. So, when I run,

nvm install v16.15.0

Boom! Node version updated on my machine.

I am sharing this here because, I have struggled a lot to do the same process before as well. This is going to help me as reference in future. There might be developers like me who might have facing issues.

This article may help them.

Leave a Comment