在Linux上我一直使用nvm来管理nodejs的不同版本,但是nvm没有windows版本,今天发现在windows上可以使用另外一个版本管理工具nvm-windows来管理。

下载与安装

下载地址:https://github.com/coreybutler/nvm-windows/releases

安装前,这里有一点需要注意,如果以前安装过node,需要先卸载,并且要把目录清理干净。下面是官方给的说明:

It comes with an installer (and uninstaller), because getting it should be easy. Please note, you need to uninstall any existing versions of node.js before installing NVM for Windows. Also delete any existing nodejs installation directories (e.g., "C:\Program Files\nodejs") that might remain. NVM's generated symlink will not overwrite an existing (even empty) installation directory.You should also delete the existing npm install location (e.g. "C:\Users<user>\AppData\Roaming\npm") so that the nvm install location will be correctly used instead. After install, reinstalling global utilities (e.g. gulp) will have to be done for each installed version of node:

使用

查看当前已经安装的nodejs版本

C:\Users\kongxx> nvm listNo installations recognized.

因为是新安装,所以提示系统没有安装任何版本。

查看可以安装的nodejs版本

C:\Users\kongxx> nvm list available|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|    8.8.1     |    6.11.5    |   0.12.18    |   0.11.16    |
|    8.8.0     |    6.11.4    |   0.12.17    |   0.11.15    |
|    8.7.0     |    6.11.3    |   0.12.16    |   0.11.14    |
|    8.6.0     |    6.11.2    |   0.12.15    |   0.11.13    |
|    8.5.0     |    6.11.1    |   0.12.14    |   0.11.12    |
|    8.4.0     |    6.11.0    |   0.12.13    |   0.11.11    |
|    8.3.0     |    6.10.3    |   0.12.12    |   0.11.10    |
|    8.2.1     |    6.10.2    |   0.12.11    |    0.11.9    |
|    8.2.0     |    6.10.1    |   0.12.10    |    0.11.8    |
|    8.1.4     |    6.10.0    |    0.12.9    |    0.11.7    |
|    8.1.3     |    6.9.5     |    0.12.8    |    0.11.6    |
|    8.1.2     |    6.9.4     |    0.12.7    |    0.11.5    |
|    8.1.1     |    6.9.3     |    0.12.6    |    0.11.4    |
|    8.1.0     |    6.9.2     |    0.12.5    |    0.11.3    |
|    8.0.0     |    6.9.1     |    0.12.4    |    0.11.2    |
|    7.10.1    |    6.9.0     |    0.12.3    |    0.11.1    |
|    7.10.0    |    4.8.5     |    0.12.2    |    0.11.0    |
|    7.9.0     |    4.8.4     |    0.12.1    |    0.9.12    |
|    7.8.0     |    4.8.3     |    0.12.0    |    0.9.11    |
|    7.7.4     |    4.8.2     |   0.10.48    |    0.9.10    |

安装指定版本的node

这里安装了 6.10.0 和 7.10.0 两个版本

C:\Users\kongxx> nvm install 6.10.0 64-bit
...C:\Users\kongxx> nvm install 7.10.0 64-bit
...

再次查看已安装的版本

C:\Users\kongxx> nvm list7.10.06.10.0

使用指定版本的node

C:\Users\kongxx> nvm use 6.10.0
Now using node v6.10.0 (64-bit)C:\Users\kongxx> nvm list7.10.0* 6.10.1 (Currently using 64-bit executable)C:\Users\kongxx> node -v
v6.10.0

删除指定版本的node

C:\Users\kongxx> nvm uninstall 7.10.0
...

Windows上node.js的多版本管理工具相关推荐

  1. Windows下完全卸载node.js并安装node.js的多版本管理工具nvm-windows

    前言 由于高版本的node.js导致gulp执行build命令失败,我需要在Windows下卸载掉已有的node.js并安装一个多版本管理工具nvm-windows,方便切换不同版本的node.js. ...

  2. (18) Node.js npm包管理工具

    一.npm概述 npm (Node Package Manager)是 Node.js 的包管理工具. 什么是包?包就是一坨代码,就是 Node.js 的第三方模块. 例如:JQuery模块,Boot ...

  3. node/js 漏洞_6个可用于检查Node.js中漏洞的工具

    node/js 漏洞 Vulnerabilities can exist in all products. The larger your software grows, the greater th ...

  4. 18个我最推荐的Node.js Web框架和工具

    Node.js是一个底层平台.为了方便开发者的工作变得简单高效,社区诞生了超过上千个库. 随着时间的推移,有很多优秀的库可以供大家选择,下面是不完全选择列表: ExpressExpressExpres ...

  5. Windows之node.js安装

    Windows之node.js安装 1.下载node.js, 下载地址:https://nodejs.org/zh-cn/download/ 选择windows安装 2.安装,双击软件图标--接受协议 ...

  6. 推荐一个超好用的截屏软件 Windows 上最好的免费截图标注工具:Snipaste

    超好用的截屏软件 Windows 上最好的免费截图标注工具:Snipaste https://sspai.com/post/34962 官方网站:Snipaste - 截图 + 贴图截图 + 贴图,提 ...

  7. 使用Node.js创建命令行工具

    在我的职业生涯中我已经写了数百种Bash脚本,但在Bash方面仍然有很多不足.每次我都要为一些简单的逻辑结构去查阅语法.如果我想使用curl或sed做些特技,我还不得不去查找操作说明.我在我的正则表达 ...

  8. Windows下Node.js开发入门(1)

    没事儿捣腾了一下Node.js,跑了个Hello World,特此记录一下. Windows 下安装 Node.js 环境 到Node官网http://nodejs.org就可以下载到安装包,我是Wi ...

  9. 使用node.js构建命令行工具

    工具说明 inquirer.js:一个封装了常用命令行交互的node.js模块,通过该模块可以很方便地构建一个新的命令行应用. shell.js:跨平台的unix shell命令模块. Node版本: ...

最新文章

  1. SilverLight 4页面跳转大全
  2. Cocos2d之Action类详解
  3. 本科计算机专业考北大软微,2022北京大学软微学院计算机智能科技考研必看经验指导(含复试解析)...
  4. 在matlab中可以计算式子的最大值吗,matlab求最大值
  5. Go语言字典树定义及实现
  6. 017 Android加固之APK混淆和保护方式
  7. python输出所有素数_Python实现输出某区间范围内全部素数的方法
  8. 2019.NET Conf China,.NET之崛起,已势不可挡
  9. Mathematics(jzoj 1747)
  10. iphone无线充电充电测试软件,瞎折腾星人的测评 篇一:想体验iPhone的无线充电?这可能是最具性价比的选择了!...
  11. c#Ice开发之环境配置(一)
  12. 使用easyexcel导出时行高不自动调整的解决
  13. android手机刷机的作用,刷机有什么好处?为什么那么多人执着于安卓刷机
  14. RTMP协议封装H264格式详解
  15. 基于大数据的NBA球员数据分析及预测系统
  16. c语言中百分号后面跟的数字_C语言中的各种百分号都代表什么意思? c语言中百分号后的数字是...
  17. 大一上学期C语言不熟知识点学习总结
  18. Windows取证——CHNTPW工具使用(可更改 Windows 密码)
  19. 小程序:获取页面高度问题
  20. shell中test命令方法详解

热门文章

  1. Android反编译工具Android Killer
  2. unigui发布_UniGui安装(01)
  3. 大湾区创新创业孵化基地开展常态化项目申报,引入区块链与量子信息企业 | 产业区块链发展周报...
  4. python-nmap使用方法(python3)
  5. VB6.0代码中,有关字符串
  6. 儿童 计算机知识启蒙教育,儿童编程启蒙教育中的可视化设计应用探究
  7. 快手伪原创视频热门 为何要修改视频md5值
  8. 物理层——奈氏准则和香农定理
  9. 用户诉QQ浏览器违法收集个人隐私,法院裁定腾讯立即停止相关行为
  10. 有谁见过八股文的天花板?阿里P8看了也晒干了沉默