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)?
I'm trying to install Node.Js using apt-get but I will always get 0.10 version.
UPDATE: Latest version of Cloud 9 workspaces now have preinstalled version 4.1.1
To use this method for updates, follow the steps below: Run npm -v to see which installed version you're currently using. Run npm install npm@latest -g to install the most recent npm update. Run npm -v again to validate that the npm version was updated correctly.
Just visit the Node installers page at https://nodejs.org/en/download/ and download and install the latest node version. From the “previous releases” section at the bottom of the page, you can select a specific version to install.
Option 2: Update Node. NPM is a tool for installing and managing package dependencies. If you have Node on your system, you have NPM, as well. With the npm command, you can check running Node. js versions and install the latest release.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With