nvm nodejs 管理

nvm nodejs 管理

1 nvm 安装下载

windows安装地址:https://github.com/coreybutler/nvm-windows/releases
nvm nodejs 管理_第1张图片

2 安装即使用

解压缩后直接进行安装:

一直下一步即可:

测试命令:

C:\Users\Administrator>nvm root

Current Root: C:\Users\Administrator\AppData\Roaming\nvm
C:\Users\Administrator>nvm list

  * 8.11.3 (Currently using 64-bit executable)

C:\Users\Administrator>

C:\Users\Administrator>nvm install v10.20.0
Downloading node.js version 10.20.0 (64-bit)...
Complete
Creating C:\Users\Administrator\AppData\Roaming\nvm\temp

Downloading npm version 6.14.4... Complete
Installing npm v6.14.4...

Installation complete. If you want to use this version, type

nvm use 10.20.0

C:\Users\Administrator>node -v
v8.11.3


\\版本切换
C:\Users\Administrator>nvm use v10.20.0
Now using node v10.20.0 (64-bit)

C:\Users\Administrator>node -v
v10.20.0

C:\Users\Administrator>
C:\Users\Administrator>nvm use 8.11.3
Now using node v8.11.3 (64-bit)

C:\Users\Administrator>node -v
v8.11.3


###3配置国内镜像

root: D:\nvm\nvm
path: C:\Program Files\nodejs
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

你可能感兴趣的:(nodejs)