

You can install as many versions of Node as you want. NVM’s install command downloads, compiles, and installs the specified version of Node. You can confirm the version of NVM that is running with the following command: nvm -version If you see the message nvm: command not found, confirm the original installation completed successfully and repeat step #2 of this section to source the. If the installation was successful, NVM returns nvm. nvmrc file (if used).Ĭonfirm you have successfully installed NVM.

NVM also simplifies the installation and compilation process because Node versions no longer have to be obtained directly from the distribution channel. NVM stores the Node versions and associated modules inside your user directory, so sudo does not have to be used. Since NVM enables quick and effortless switching between Node versions, it is much easier to test version compatibility and upgrades with multiple libraries. Node changes quickly and testing applications with different versions is often difficult. This guide describes how to install NVM, and how to use it to install and run different versions of Node. NVM allows you to easily install and manage different versions of Node and switch between them on a per-shell basis. NVM is easy to understand and works on any POSIX-compliant shell (for example, sh or bash). The Node Version Manager (NVM) is an open source version manager for Node.js (Node).
