- [Instructor] You might find after a while
you're experiencing some issues
either following this course
or trying new features posted on the web.
And you're not getting the same results.
The first thing that I would do
is to make sure I'm running the same version
of Node JS in NPM as the teacher
or the tutorial I'm trying,
or the version the new feature announced.
As a general rule, I always run the latest LTS Node version
so I know it has been tested and is well supported.
So if you go to the Node JS site, which is nodejs.org,
this is the version that I use.
At the time of this recording, 10.14.1
is the current latest version.
And this is for production purposes.
But for anything else, if you'd like to test
the latest features from Node,
you can install the current version, which is this one.
But if you're looking for any previous version,
so you're looking at a tutorial and it tells you,
well we've been running Node JS Eight.
Well you can do this by going to the other downloads
right here, and then you scroll
until you see the previous releases.
And then you can find the version you need
and get it from the right.
So if we're looking at version eight,
you can scroll all the way to the specific version
of version eight, so if 8.00,
you would scroll to this version
and then download and install this version.
So this is the best way if you're looking
for a previous release, you can find it on this list.
But this is the manual way.
If you'd prefer using one tool to quickly switch
in between versions, you can use NVM.
And NVM can be found directly on GitHub.
So if you go to the page github.com/creationix/nvm,
you can install what is called NVM,
which is the Node Version Manager.
And follow the instructions on this site to install it
and then run it, and then all you have to do
is something like NVM use, and the version you want to use,
and then you're going to be using
this version on your computer.
So this is for the Mac.
For Windows, there's an actual version
that has been created also,
which is called NVM Windows.
So you can go to github.com/coreybutler/nvm-windows
and basically install this tool
and use it the same way I just explained.
Then you can use NVM use, and then the version.
So follow the instructions on each of these reposts,
and once installed, all you have to do
is switch in between the versions
by doing the NVM use, 10.1.0, or NVM use, 8.00,
like we've just shown, and you will use that version of NPM.
So if you want to install it manually
and keep the same version, you can do it
the other way that I just explained.