Update NodeJS on macOS

To update NodeJS on macOS, you can use a tool called “n” which is installed using Node Package Manager. How is it in detail? Let’s find out together in this tutorial!

First, please check the current version of NodeJS on your machine using the command:

Mine is as follows:

Now, install the “n” tool at the system level so that you can use it anywhere on your machine with the Node Package Manager as follows:

My result is as follows:

Now you can update NodeJS using the “n” tool with the following command:

Result:

Check the NodeJS version again, you will see the latest version of NodeJS has been updated.

My result is as follows:

Add Comment