NVM download address

NVM download address

perform

  • Version download
NVM s Check version NVM install 9.0.1 Install node version 8.9.1 NVM use 8.9.1Copy the code

1. What is NVM

Node.js Version Management NVM is a node.js version management tool. It allows you to install and switch between different versions of NodeJS. Download, install and use instructions are listed below.

2, download

You can download the latest version on Github here. This time, you install the Windows version. Open the url and we can see that there are two versions:

  • Nvm-noinstall. zip: green installation-free version, which requires configuration.
  • Nvm-setup. zip: installation version, recommended

3, installation,

This demo is the installation version.Copy the code
  • Double-click the installation file nVM-setup.exe

  • Select the NVM installation path

  • Select the nodeJS path

  • Just confirm installation

  • Confirmation after installation

    Open CMD and enter the command NVM. If the installation is successful, the following information is displayed: You can see the various commands listed here, and the Chinese illustrations for these commands are given at the end of this section.

  • Install/manage NodeJS

    • View all versions installed locally; The optional parameter available displays all downloadable versions.

    nvm list [available]
    Copy the code
    • Install. The version number in the command can be customized. For details, see the list obtained in command 1

    NVM install 11.13.0Copy the code
    • Use a specific version

    NVM use 11.13.0Copy the code
    • uninstall

    NVM uninstall 11.13.0Copy the code
    • A command prompt

    NVM Arch: Shows whether node is running 32-bit or 64-bit. NVM install <version> [arch] : installs node. Version can be a specific version or latest stable version. The optional arch parameter specifies whether to install the 32-bit or 64-bit version, which defaults to system bits. You can add --insecure to bypass SSL on the remote server. NVM list [available] : displays the installed list. The optional parameter available displays all versions that can be installed. List can be simplified to ls. NVM on: enables node.js version management. NVM off: disables node.js version management. NVM proxy [URL] : Sets the download proxy. Displays the current proxy without the optional URL. Setting the URL to None removes the proxy. NVM node_mirror [url] : sets the node mirror. The default is https://nodejs.org/dist/. If the URL is not written, the default URL is used. You can view the Settings in installation directory settings. TXT or perform operations in this file. NVM npM_mirror [URL] : Sets the NPM mirror. https://github.com/npm/cli/archive/. If the URL is not written, the default URL is used. You can view the Settings in installation directory settings. TXT or perform operations in this file. NVM uninstall <version> : uninstalls a specified version of Node. NVM use [version] [arch] : uses the specified version of node. 32/64 bits can be specified. NVM root [path] : Sets the directory for storing different versions of Nodes. If no, the current directory is used by default. NVM Version: Displays the NVM version. Version can be simplified to v.Copy the code
  • conclusion

    This section describes how to install and use the Node. js version management tool NVM. It is recommended that the installation path do not contain Chinese characters and Spaces.

This article is modified with Empty “NVM Installation and Use” hereby stated