Use nvm to manage multiple versions of node

1. Introduction

Manage multiple versions of node to facilitate node version switching and rapid development

2. Steps

1. Uninstall the node program on the computer
2. Install nvm_setup

3. Unzip the downloaded nodejs compressed package to the nvm installation directory, and modify the name

  • nodejs download link
    insert image description here
    4. Open cmd, enter nvm ls to check if the display is correct
    5. Use nvm use 16.14.2

    insert image description here

6. Configure npm and node mirroring (on demand, if it is a downloaded compressed package, this step can be ignored)
Open your installation nvm folder and there is a settings.txt file
Add two lines behind:
node_mirror: https://npm .taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

Guess you like

Origin blog.csdn.net/r657225738/article/details/128900043