Install the latest LTS version with nvm install -lts.Use the latest version with nvm use node.Install the latest version with nvm install node.Ensure that nvm was installed correctly with nvm -version, which should return the version of nvm installed.Here's the abbreviated guide, highlighting the major steps:ĭownload the nvm install script via cURL: Step 0: The Quick Guide (TL DR) to Get Node.js Installed using nvm This guide covers installing nvm on macOS and Linux - note that all versions of Node.js may not support every version of macOS or Linux. Once we've completed the tutorial, you'll be ready to take the next step with Node.js.
#NVM INSTALL NODE HOW TO#
In this quick tutorial, we'll take a look at how to install nvm, and then how to start using it as your version manager for Node.js. This means you can have the latest version of Node.js, the latest versions of all the LTS release lines, and any number of other versions you want to use or test as well.
#NVM INSTALL NODE UPGRADE#
One awesome aspect of nvm is that it manages the versions of Node.js, it doesn't just upgrade them. That said, there's a fantastic tool for the community called nvm that allows you to manage the versions of Node.js that you've got installed locally. Many of them typically come with a speedy way to upgrade when a new version is available.īy default, there's not a way to upgrade the version of Node.js you've got from within Node.js itself. This article was first published in NodeSource blog on January 2017.Īs with any programming language, platform, or tool, the first step to using it is getting it installed.