window系统想要切换本身的node版本,找到了https://github.com/coreybutler/nvm-windowsnode
记录下介绍的常见命令行,虽然简单,但忘记的时候也能够来翻翻吧git
nvm arch [32|64] : Show if node is running in 32 or 64 bit mode. Specify 32 or 64 to override the default architecture.以32仍是64位模式运行。 指定32或64来覆盖默认体系结构。github
nvm install <version> [arch] : The version can be a node.js version or "latest" for the latest stable version. Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions. version能够是制定的版本,也但是是latest指定为最新版本,arch是选择64仍是32的版本,npm
nvm list [available]: List the node.js installations. Type available at the end to show a list of versions available for download.列出node的安装版本,在结尾加上available显示可宫下载的node版本windows
nvm on: Enable node.js version management. 启动node版本管理ide
nvm off: Disable node.js version management (does not uninstall anything).关闭版本管理,不会卸载url
nvm proxy [url]: Set a proxy to use for downloads. Leave [url] blank to see the current proxy. Set [url] to "none" to remove the proxy.使用下载的时候设置代理,url为空的时候查看当前代理,设置为none时移除代理spa
nvm uninstall <version>: Uninstall a specific version. 卸载制定版本命令行
nvm use <version> [arch]: Switch to use the specified version. Optionally specify 32/64bit architecture. nvm use <arch>will continue using the selected version, but switch to 32/64 bit mode based on the value supplied to <arch>. For information about using use in a specific directory (or using .nvmrc), please refer to issue #16.选择使用指定的版本,可选32或64位。nvm use <arch>可继续使用选择的版本,可是会根据你输入的是32仍是64来切换是32位仍是64位。若是有特殊的要求去精确到某个特殊目录去运行,能够参考issue16。有人提出需求了。代理
nvm root <path>: Set the directory where nvm should store different versions of node.js. If <path> is not set, the current root will be displayed.设置存储不一样node版本的目录。若是没有指定path会显示当前的目录
nvm version: Displays the current running version of NVM for Windows.显示当前使用的node版本
nvm node_mirror <node_mirror_url>: Set the node mirror.People in China can use https://npm.taobao.org/mirrors/node/ 设置node镜像,中国玩家能够使用后面这段连接
nvm npm_mirror <npm_mirror_url>: Set the npm mirror.People in China can use https://npm.taobao.org/mirrors/npm/npm镜像 ,中国玩家能够看后面这段连接