nvm-window常用命令

摘要:
指定32或64来覆盖默认体系结构。nvminstall[arch]:Theversioncanbeanode.jsversionor"latest"forthelateststableversion.Optionallyspecifywhethertoinstallthe32or64bitversion.Set[arch]to"all"toinstall32AND64bitversions.version可以是制定的版本,也可是是latest指定为最新版本,arch是选择64还是32的版本,nvmlist[available]:Listthenode.jsinstallations.Typeavailableattheendtoshowalistofversionsavailablefordownload.列出node的安装版本,在结尾加上available显示可宫下载的node版本nvmon:Enablenode.jsversionmanagement.启动node版本管理nvmoff:Disablenode.jsversionmanagement.关闭版本管理,不会卸载nvmproxy[url]:Setaproxytousefordownloads.Leave[url]blanktoseethecurrentproxy.Set[url]to"none"toremovetheproxy.使用下载的时候设置代理,url为空的时候查看当前代理,设置为none时移除代理nvmuninstall:Uninstallaspecificversion.卸载制定版本nvmuse[arch]:Switchtousethespecifiedversion.Optionallyspecify32/64bitarchitecture.nvmusewillcontinueusingtheselectedversion,butswitchto32/64bitmodebasedonthevaluesuppliedto.Forinformationaboutusinguseinaspecificdirectory,pleaserefertoissue#16.选择使用指定的版本,可选32或64位。nvmuse可继续使用选择的版本,但是会根据你输入的是32还是64来切换是32位还是64位。

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. 卸载制定版本

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

免责声明:文章转载自《nvm-window常用命令》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇kafka connect 使用Access和SQLServer的差距下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

使用json-Server快速模拟服务环境搭建

在前后端分离的这种工作模式下,分工明确,各司其职。前端负责展示数据,后端提供数据。然而,在这种过程中对于接口的规范 需要提前制定好。例如根据规范提前模拟数据,这个时候就比较麻烦的。JsonServer这个比较NB了,它可以快速搭建服务端环境,创建json文件,便于调用。然后可以通过下载postman与json-server结合,可以实现数据的增删改查功能。...

node爬虫爬取中文时乱码问题 | nodejs gb2312、GBK中文乱码解决方法

iconv需要依赖native库,这样一来,在一些不支持native模块安装的虚拟主机和windows平台上,我们还是无法安心处理GBK编码。 老外写了一个通过纯Javascript转换编码的模块 iconv-lite 可以实现window下的转换 ,通过npm可以安装此模块,bufferhelper是一个操作buffer的加强类 首先安装 npm ins...

zabbix proxy配置

一、zabbix官网对proxy的介绍 A Zabbix proxy can collect performance and availability data on behalf of the Zabbix server. This way, a proxy can take on itself some of the load of collectin...

解决 renren-fast-vue npm 下载依赖失败问题

额,昨天下载依赖失败的时候报错信息忘记截图了 尝试了很多方法依然下载依赖失败的时候,应该考虑一下是否是node版本的原因 我这里失败时的版本是 12.13.0 切换到10.13.0 的版本后成功下载,关于node版本的切换可以使用 nvm 来管理...

浅析Node与Element

起因 起因有二: 在看winter老师的分享:《一个前端的自我修养》时,有注意到这么一幅图,里面有写childNode和children属性。 昨天有学弟问起我,能否自己定义一个所有元素节点通用的方法,就像数组可以用 Array.prototype.xxx 来添加一个所有数组的方法。于是发现自己对于Node和Element的概念其实还不太清晰,所以上M...

理解Node.js事件驱动编程

Node.js现在非常活跃,相关生态社区已经超过Lua(基本上比较知名的功能都有nodejs模块实现)。 但是我们为何要使用Node.Js?相比传统的webserver服务模式,nodejs有什么优点优势? Node.Js是基于javascript语言,建构在google V8 engine以及Linux上的一个非阻塞事件驱动IO框架。nodejs是单进程...