In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the meaning of node nvm, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Nvm, whose full name is "node.js version management", is a version management tool of nodejs, which is used to solve the incompatibility of various versions of node. It is a tool that can install and switch different versions of node on the same machine.
The operating environment of this tutorial: windows7 system, nodejs 13.6.0, DELL G3 computer.
What is nvm?
Nvm is called node.js version management in English and is a version management tool for nodejs. Nvm and n are both node.js version management tools. In order to solve the incompatibility of various versions of node.js, you can install and switch different versions of node.js through it.
Nvm download
You can download the latest version on github here. This download installs the windows version. When we open the URL, we can see that there are two versions:
Nvm 1.1.7-setup.zip: installation version, recommended (http://nvm.uihtm.com/nvm1.1.7-setup.zip)
Nvm 1.1.7-noinstall.zip: green installation-free version, but need to be configured when using it (http://nvm.uihtm.com/nvm1.1.7-noinstall.zip)
Nvm Command prompt
Nvm arch: shows whether node is running on 32-bit or 64-bit.
Nvm install [arch]: install node. Version is either a specific version or the latest stable version of latest. The optional parameter arch specifies whether to install the 32-bit or 64-bit version, and the default is the number of system bits. You can add-- insecure to bypass the SSL of the remote server.
Nvm list [available]: displays a list of installed ones. The optional parameter available displays all installable versions. List can be simplified to ls.
Nvm on: enable node.js version management.
Nvm off: turn off node.js version management.
Nvm proxy [url]: sets the download agent. Displays the current proxy without the optional parameter url. Setting url to none removes the proxy.
Nvm node_mirror [url]: sets the node image. The default is https://nodejs.org/dist/. If you do not write url, the default url is used. After setting up, you can check the settings.txt file in the installation directory, or you can operate directly in that file.
Nvm npm_mirror [url]: sets the npm image. Https://github.com/npm/cli/archive/ . If you do not write url, the default url is used. After setting up, you can check the settings.txt file in the installation directory, or you can operate directly in that file.
Nvm uninstall: uninstall the specified version of node.
Nvm use [version] [arch]: use a defined version of node. 32 + 64 bits can be specified.
Nvm root [path]: sets the directory where different versions of node are stored. If not set, the current directory is used by default.
Nvm version: displays the nvm version. Version can be simplified to v.
Install the node.js version
Nvm list available displays a partial list of downloadable versions
Nvm install latest installs the latest version (you can see the corresponding version numbers of node.js and npm above during installation. It is not recommended to install the latest version)
Nvm install version number installs the specified version of nodejs
View installed version
Nvm list or nvm ls check the currently installed version (there is no * in front of the current version number, and no version is used at this time, so an error will be reported when using node.js)
Switch node version
The nvm use version number uses the specified version of nodejs (in this case, you will find that there is a * tag before the enabled version of node, and you can use node.js)
Thank you for reading this article carefully. I hope the article "what is the meaning of node nvm" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.