In order to use NodeJS you need to install it, and rather than install a single version where you have to manage the upgrades manually, it is recommend to use a version manager like NVM. With NVM, you can install and manage multiple versions of NodeJS and switch between them as needed.
Sounds legit, so how do we get started?
Head over to https://github.com/nvm-sh/nvm and start the installation script.
Next up you will want to install the latest LTS version like this:
$ nvm install lts
In order to ensure NVM uses this version when you start a new shell instance, run the following command:
$ nvm alias default node
This tells NVM to use the default LTS installation when starting up.
Congratulations, you are ready to start using NodeJS!
One thought on “Using NodeJS on Mac OSX”