Node Version Manager For Mac

Before you can start making super awesome apps in NodeJS, you have to install it. Fortunately, installing NodeJS is super simple.

Node Version Switcher - A cross-platform tool for switching between versions and forks of Node.js - jasongin/nvs. This tool is obviously inspired by other node version manager tools, especially nvm, from which it borrows a lot of ideas and some command-line syntax. Specify the installation path, clone the repo. Use n, an extremely simple Node version manager that can be installed via npm. Say you want Node.js v0.10.x to build Atom. Npm install -g n # Install n globally n 0.10.33 # Install and use v0.10.33.

Version

In this tutorial we will cover how to install NodeJS/NPM in

  • macOS/linux
  • Windows

Once you install NodeJS/NPM, you can easily upgrade/downgrade to any Node version with one command. The following video tutorial shows you how to download NodeJS on your machine.

Installation guide for Mac OS & Linux

Open a new terminal. Type the following and hit enter:

Close your terminal, then open a new one and type this:

You will see something like this:

Next in your terminal type:

Once it is installed, it is ready to be used. To use this version, just type this in your terminal:

Now that it is installed let's check it by doing the following:

And that is it – you are done. Have fun.

Now if, in the future, for some reason you want to uninstall NVM (node version manager) simply open up your terminal and type the following:

Installation guide for Windows

Node Version Manager For Mac Os

First, go to nvm-windows repositories releases section https://github.com/coreybutler/nvm-windows/releases. Select the latest release.

Next choose the nvm-setup.zip file and download it.

Once the file is downloaded, unzip and click on the installer and follow the steps. (I am using 7zip for .zip file extraction, because it is FREE.)

Then to check if nvm is properly installed, open a new command prompt terminal and type nvm. Once it is verified that it is installed you can move on to the next step.

Install NodeJS using nvm like this:

The version can be a NodeJS version or 'latest' (for the latest stable version).

In order to use the specific node version you just installed, in your terminal simply type the following:

Check the node version with node -v. This should output v12.18.1 in your terminal.

Node Version Manager For Macbook Pro

If you want to install another version of Node, repeat the steps with a different version.

You should now have a working version of NodeJS running on your machine. Happy coding folks. :)

Osx Install Nvm

Let me know if you found this guide helpful. Drop me a message on twitter (twitter.com/adeelibr).