

If the installation went uninterrupted, you should have the necessary tools to use nvm!.Allow the download to run to completion.Run xcode-select -install as a command.

To get these on macOS, you can follow these steps: On macOS, you've got two options for a C++ compiler: the full XCode application or the stand-alone Command Line Tools portion of Xcode. That said, it's a nice to have to ensure that the majority of requirements are met in any scenario. In some cases, like when installing Node.js releases from their source or installing versions of Node.js before 0.8.6 (when the project started shipping binaries), you'll need to ensure that your system has the appropriate C++ build tools.įor LTS and modern releases, you will not need this step. Step 1 (Optional): Ensure your system has the appropriate C++ compiler

Once we've completed the tutorial, you'll be ready to take the next step with Node.js. 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. 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. As with any programming language, platform, or tool, the first step to using it is getting it installed.
