Update Node.js on Koding VM

Koding is an online development environment, which allows software/web developers to program and collaborate online using a web browser without installing any extra software on you system or a web browser extension, the platform supports multiple programming languages, including Python, Perl, Node.js, Ruby, Java, PHP and Go. Koding also offers better access to the VM. Each user has his/her own VM with Root access to it. Koding also has a better and more responsive customer service compared to it’s competitors.

Koding VM’s run Ubuntu 13.04 Server Edition and offer Node.js version 0.10.18 that is available in the Ubuntu repository. We can update to the current stable version of Node.js by using the PPA. This PPA is maintained by Chris Lea and is officially recommended in the Node.js installation documentation, This PPA will install the latest stable version of Node.js available for the specific Ubuntu release or Ubuntu based release.

This is a good way to stay up to Date with the latest supported version of Node.js for developers who require latest stable version of Koding.

Updating Node.js on Koding VM.

Click the Terminal logo that is near the Teamwork and before the ace editor on the tool bar. (The setting might be different if you have customized the toolbar.)

The images are not longer available

Once you have the Terminal, It should look something similar to this.

The images are not longer available

Now you can enter these commands to update the version of Node.js running on your Koding VM.

The PPA build of Node.js comes with NPM.

Adding the PPA.

 sudo add-apt-repository ppa:chris-lea/node.js

Updating the local repository database.

 sudo apt-get update

Upgrading the VM and updating the Node.js package.

sudo apt-get dist-upgrade  

If in any case you had uninstalled Node.js from the VM, you can install it back too.

sudo apt-get install nodejs  

Checking which version of Node.js you are running.

node --version  

The output should look like this.

v0.10.25  

A dist-upgrade is a good way to keep the Node.js version up to Date.

sudo apt-get dist-upgrade  

Now you have the latest stable version of Node.js installed on your Koding VM. If you have any problem feel free to leave a comment below.

The Koding logo (image) used is rightfully owned by Koding Inc

Author: Darryl

I am a self-taught programmer and CG Artist, I write on programming and 3D Animation, tips, and tricks and my experience with things, sometimes I write content on demand if the topic interests me. I love sharing knowledge,

Leave a Reply