Update node.js version inside Cloud 9 IDE

怎甘沉沦 提交于 2019-11-29 21:29:06

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 keeps all the versions so you can switch back whenever you want.

See also https://docs.c9.io/v1.0/docs/writing-a-nodejs-app.

To improve on Davide Icardi's answer, this installs the latest stable version:

nvm install stable

Worked for me in Cloud9.

Are you running Debian/Ubuntu? As an alternative to nvm, you can:

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs

source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!