Detailed installation process of nodejs management tool nvm

Detailed installation process of nodejs management tool nvm

nvm

nvm is responsible for managing multiple versions of nodejs

Install:

https://github.com/coreybutler/nvm-windows/releases
Download nvm-setup.zip, nvm-noinstall.zip

insert image description here

Click nvm-setup.exe to install, and then click Next. Install to C:\dev\nvm. After the installation is complete, the environment variables NVM_HOME and NVM_SYMLINK are automatically configured and added to Path.

insert image description here

insert image description here

Verify whether the installation is successful and open the command line cmd

insert image description here

Commonly used commands of nvm

nvm list View all currently installed Node.js versions
nvm install version number installs the specified version of Node.js
nvm uninstall version number uninstalls the specified version of Node.js
nvm use version number selects the specified version of Node.js

Command Case Operation

# Install version 7.10.0 C:\Users\vagrant>nvm install 7.10.0
Downloading node.js version 7.10.0 (64-bit)...
Complete
Creating C:\dev\nvm\temp
Downloading npm version 4.2.0... Complete
Installing npm v4.2.0...
Installation complete. If you want to use this version, type
nvm use 7.10.0
# Install version 6.10.3 C:\Users\vagrant>nvm install 6.10.3
Downloading node.js version 6.10.3 (64-bit)...
Complete
Creating C:\dev\nvm\temp
Downloading npm version 3.10.10... Complete
Installing npm v3.10.10...
Installation complete. If you want to use this version, type
nvm use 6.10.3
# Display the currently installed version C:\Users\vagrant>nvm list
    7.10.0
    6.10.3
C:\Users\vagrant>
# Switch to version 7.10.0 C:\Users\vagrant>nvm use 7.10.0
Now using node v7.10.0 (64-bit)
C:\Users\vagrant>nvm list
  * 7.10.0 (Currently using 64-bit executable)
6.10.3
# View the nodejs version currently used C:\Users\vagrant>node -v
v7.10.0
# Switch version C:\Users\vagrant>nvm use 6.10.3
Now using node v6.10.3 (64-bit)
C:\Users\vagrant>nvm list
    7.10.0
  * 6.10.3 (Currently using 64-bit executable)

Switching versions is essentially switching shortcuts

insert image description here

The above is the detailed content of the detailed installation process of the nodejs management tool nvm. For more information about nodejs nvm installation, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • NVM installation method of nodejs practical steps
  • Detailed explanation of using PM2 to manage nodejs processes
  • Detailed explanation of building a rights management system in express in nodejs
  • Detailed explanation of using redis to manage session in nodejs express
  • Configuration method and common commands of nodejs npm package management

<<:  Two ideas for implementing database horizontal segmentation

>>:  CentOS7 upgrade kernel kernel5.0 version

Recommend

Why MySQL can ignore time zone issues when using timestamp?

I have always wondered why the MySQL database tim...

Implementation steps for building FastDFS file server in Linux

Table of contents 1. Software Package 2. Install ...

Detailed explanation of MySQL/Java server support for emoji and problem solving

This article describes the support and problem so...

Detailed explanation of writing multiple conditions of CSS: not

The :not pseudo-class selector can filter element...

How to use node to implement static file caching

Table of contents cache Cache location classifica...

Centos8 (minimum installation) tutorial on how to install Python3.8+pip

After minimizing the installation of Python8, I i...

Why Seconds_Behind_Master is still 0 when MySQL synchronization delay occurs

Table of contents Problem Description Principle A...

CSS implements the web component function of sliding the message panel

Hello everyone, I wonder if you have the same con...

Docker removes abnormal container operations

This rookie encountered such a problem when he ju...

How to install and configure mysql 5.7.19 under centos6.5

The detailed steps for installing mysql5.7.19 on ...

I have sorted out some domestic design websites that I think are good.

<br />I have compiled some domestic design w...

A brief talk on responsive design

1. What is responsive design? Responsive design i...

Docker image import and export code examples

Import and export of Docker images This article i...