Skip to main content


Showing posts from April, 2011

Updating Node.js from source

I recently tried to update my systems to the latest version of Node.js (v0.4.7 at present time.) I followed the instructions in my previous post but ran into issues compiling - I kept getting “Cannot find config.h.”

The node github page had the solution:

git clean -f -d -x

Git experts (not like me) probably find this to be obvious, but whatevs. Iz gotz nodz.

'Gotcha' for running Cloud9 IDE on Cygwin

Cloud9 IDE is a slick web-based ide optimized for NodeJS, built on - you guessed it - NodeJS. If you’re developing Node on Windows, you’re probably using Cygwin (see previous post for instructions.) Trying to run Cloud9 on my setup threw an error.

With a a little trial and error, I discovered I needed to install ‘libxml2-dev.’ Re-rerun setup.exe to add the needed lib.

My NodeJS on Windows Setup

I recently decided to jump on the NodeJS bandwagon. NodeJS requires a POSIX OS and as such wouldn’t run on my Win7 laptop. I first created a slim Ubuntu VM on virtualbox. Running in seamless mode, it was almost like NodeJS was running right in Windows. It was perfect, but it worked.

After awhile, I started to notice that the 100meg+ made my laptop fan work a bit too hard. I decided I’ll try Cygwin.

I used the instructions from Github and a bit of Googling to get it working. It was surprisingly easier than the last time I tried Cygwin a few years ago.

You’ll only need to download two files: Cygwin & mintty.

Open CMD and navigate to setup.exe:

setup.exe -q -s --package gcc-g++,git,make,openssl,openssl-devel,pkg-config,zlib-devel,python,curl,wget,nano,rebase

(Note that this is all one line.)

Launch the Cygwin Bash Shell - you can close it once it loads and never look back.

Open c:\cygwin\bin\dash:

/bin/rebaseall -v

Now extract mintty and run “Create shortcut…