简体   繁体   English

如何在单个系统上使用不同版本的node / npm?

[英]How to use different versions of node/npm on a single system?

My questions says it all. 我的问题说明了一切。

Is it possible to install and use a different version of npm per project on a single system? 是否可以在单个系统上为每个项目安装和使用不同版本的npm?

Yup it is possible to use different version of npm per project in a single system. 是的,可以在单个系统中为每个项目使用不同版本的npm

If you are using Mac or Linux based systems then you can user Node Version Manager (nvm) . 如果您使用的是基于MacLinux的系统,则可以使用节点版本管理器(nvm)

For better idea about installation and usages of nvm you can take a look at their github ripo . 为了更好地了解nvm的安装和使用,你可以看看他们的github ripo

But if you are using windows then you have two alternative to nvm. 但是如果你使用的是Windows,那么你有两种替代nvm的方法。 NVM for Windows and nodist . NVM for Windowsnodist You will find installation and usages instruction on the likes. 您可以在喜欢的地方找到安装和使用说明。

Hope it helps you. 希望它能帮到你。 Thanks!! 谢谢!!

You can also use n created my TJ Holowaychuk . 您也可以使用n创建我的TJ Holowaychuk Which is simple flavour of node/iojs binary management, no subshells, no profile setup, no convoluted api, just simple. 这是节点/ iojs二进制管理的简单风格,没有子shell,没有配置文件设置,没有复杂的api,只是简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM