在Cloud 9 IDE中更新node.js版本 [英] Update node.js version inside Cloud 9 IDE

查看:92
本文介绍了在Cloud 9 IDE中更新node.js版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Cloud 9工作区正在以Node.Js 0.10运行。如何将其更新到最新版本的Node.Js(今天是0.12.4)?

My Cloud 9 workspace is running with Node.Js 0.10. How can I update it to the latest version of Node.Js (today is 0.12.4)?

我正在尝试使用apt-get安装Node.Js,但是我将始终获得0.10版本。

I'm trying to install Node.Js using apt-get but I will always get 0.10 version.

更新
Cloud 9工作区的最新版本现已预安装了4.1.1版本。 p>

UPDATE: Latest version of Cloud 9 workspaces now have preinstalled version 4.1.1

推荐答案

借助Cloud 9,您可以使用 NVM 以安装新版本的Node.js。
只需运行:

With Cloud 9 you can use NVM to install a new version of Node.js. Just run:

nvm install 5.5.0
nvm use 5.5.0
nvm alias default v5.5.0

NVM保留所有版本,以便您随时可以切换回去。

NVM keeps all the versions so you can switch back whenever you want.

另请参见 https://docs.c9.io/v1.0/docs/writing-a-nodejs-app

这篇关于在Cloud 9 IDE中更新node.js版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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