nvm-window常用命令

window系统想要切换自己的node版本,找到了https://github.com/coreybutler/nvm-windows

记录下介绍的常见命令行,虽然简单,但忘记的时候也可以来翻翻吧

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来覆盖默认体系结构。

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的版本,

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版本

nvm on: Enable node.js version management. 启动node版本管理

nvm off: Disable node.js version management (does not uninstall anything).关闭版本管理,不会卸载

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时移除代理

nvm uninstall <version>: Uninstall a specific version. 卸载制定版本

扫描二维码关注公众号,回复: 893833 查看本文章

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镜像 ,中国玩家可以看后面这段链接

猜你喜欢

转载自www.cnblogs.com/jjucap/p/9051253.html