Windows上的多个版本的节点 [英] Multiple versions of node on windows

查看:98
本文介绍了Windows上的多个版本的节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前在Windows计算机上安装了以下版本.

I currently have the following versions installed my windows machine.

节点:v7.3.0 npm:3.10.10 @ angular/cli:1.4.2

node : v7.3.0 npm : 3.10.10 @angular/cli : 1.4.2

我想安装以上版本的最新版本,并能够进行相应的切换.据我所知,节点的安装控制着这一点.如果我需要安装最新的npm和angular cli,那么我将需要安装最新版本的node.如果我错了,请纠正我.我可以在全球范围内安装最新版本的Node.js吗?一旦安装,就可以在节点版本之间切换.我认为在节点版本之间进行切换会注意使用适当的npm和cli.

I would like to install latest versions of the above and be able to switch accordingly. To my knowledge installation of node governs that. If I need to install latest npm and angular cli then i would need to install the latest version of node. Please do correct me if I am wrong. Can i globally install the latest version of nodejs. Once I install that could i switch between the node versions. I presume switching between the node versions would take care to use the appropriate npm and cli.

推荐答案

这可以通过各种版本管理器来实现.

This is achievable via various version managers.

对于Windows,请查看用于Windows的NVM .

For Windows, take a look at NVM for Windows.

对于macOS或Linux(我看到的不是您的OS,但对于其他阅读者而言),我喜欢 n ,并且 NVM 也被广泛使用.

For macOS or Linux (not your OS, I see, but for others reading), I like n, and NVM is also widely used.

这篇关于Windows上的多个版本的节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆