下载
nvm-windows 最新下载地址:
https://github.com/coreybutler/nvm-windows/releases
注意事项
- 选择nvm安装的路径中最好不要出现空格和中文
- 如果之前安装过node环境需要先卸载
安装完nvm之后输入nvm list
如下:
PS C:\Users\Administrator\Desktop\nodejs> nvm list
No installations recognized.
安装node
-
运行
nvm install 8.11.4 64-bit
PS C:\Users\Administrator\Desktop\nodejs> nvm install 8.11.4 64-bit Downloading node.js version 8.11.4 (64-bit)... Complete Creating D:\Node\nvm\temp Downloading npm version 5.6.0... Complete Installing npm v5.6.0... Installation complete. If you want to use this version, type nvm use 8.11.4
- 运行
nvm use 8.11.4
,使用8.11.4版本的node环境PS C:\Users\Administrator\Desktop\nodejs> nvm use 8.11.4 Now using node v8.11.4 (64-bit)
查看当前node
PS C:\Users\Administrator\Desktop\nodejs> node -v v8.11.4 PS C:\Users\Administrator\Desktop\nodejs> npm -v 5.6.0
来源:51CTO
作者:zzzzzga
链接:https://blog.51cto.com/9552815/2173522