如何更改为旧版本的 Node.js [英] How to change to an older version of Node.js

查看:56
本文介绍了如何更改为旧版本的 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屋!

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