github Download:https://github.com/coreybutler/nvm-windows
在 github 搜索 nvm-windows 项目,选择 releases (发行版) ,下载版本下 Assets - nvm-setup.zip
特别注意的是:
在安装适用于Windows的NVM之前,您需要卸载任何现有的node.js版本。还要删除所有可能保留的现有nodejs安装目录(例如:"C:Program Files odejs")。NVM生成的符号链接不会覆盖现有的(甚至是空的)安装目录。
您还应该删除现有的npm安装位置(例如:"C:Users<user>AppDataRoaming
pm"),以便正确使用nvm安装位置。如果您在那里有一些重要设置,请备份全局npmrc
配置(例如:C:Users<user>AppDataRoaming
pmetc
pmrc),或将设置复制到用户config C:Users<user>.npmrc。
其他注意事项及用法介绍请根据 github markdown 文档操作 。
安装 Node.js
使用nvm install version arch命令下载需要的版本。version 表示版本,arch 表示系统位数,默认是64位,如果是32位操作系统,需要执行命令:nvm install *.*.* 32。