如何更改为旧版本的Node.js [英] How to change to an older version of Node.js
本文介绍了如何更改为旧版本的Node.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Ubuntu 10.10上运行Node.js版本v0.5.9-pre
.
I am running Node.js version v0.5.9-pre
on Ubuntu 10.10.
我想使用版本v0.5.0-pre
.
如何回滚到旧版本的节点?
How do I roll back to the older version of node?
推荐答案
一种方法是使用NVM,即节点版本管理器.
One way is to use NVM, the Node Version Manager.
使用以下命令获取nvm
Use following command to get nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
您可以在 https://github.com/creationix/nvm
它使您可以轻松安装和管理节点的多个版本.这是帮助的摘录:
It allows you to easily install and manage multiple versions of node. Here's a snippet from the help:
Usage:
nvm install <version> Download and install a <version>
nvm use <version> Modify PATH to use <version>
nvm ls List versions (installed versions are blue)
这篇关于如何更改为旧版本的Node.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文