Skip to main content

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 http://cygwin.osuosl.org --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.” Launch mintty and follow the build steps:

mkdir src
cd src
git clone git://github.com/joyent/node.git
git fetch --all
git tag
git checkout v0.4.5
./configure
make #grab a beer and wait
make install
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
curl http://npmjs.org/install.sh | sh

I also create a symlink so all my files show up in Dropbox:

mklink /J C:\cygwin\home\{user}\projects C:\Users\{user}\Documents\Dropbox\projects

(note the space between the Cygwin folder and Dropbox folder)

I’ll try to put together a Screenr and run through the steps.

Anyone else playing with NodeJS on Windows or otherwise?

./BBK

Popular posts from this blog

My weekend project: an Arduino, Raspberry Pi & Node.js robot

Yes I know, I'll get more buzzwords when I my JavaScript creates Cloud Synergy - but after I Pivot. I've been spending my wee few hours a week designing, tinkering and finally building my little robotics platform. I've had ideas brewing for a while but haven't had enough time outside of work to start hacking. It all started when I first saw Rick Waldron's Johnny Five framework  for Node.js. Sensors are asynchronous, so, ya, a node.js robot framework makes sense. A few months later I started sketching designs, reading up on firmata  and buying my arduino & Pi. Before the what & why, here's the basic BOM: 1 Arduino Uno R3 running firmata 1 original Raspberry Pi with Raspbian, Node.js & 4gb of storage 1 Magicians chassis 1 SN754410NE Quad Half H-Bridge to drive the motors 1 dual-output mobile battery back A custom mount for the Pi & some custom USB cabling for power Why Raspberry Pi The main controller is a Rpi. It tur

A Maker's Equipment List

I've been building up a nice supply of tools and components so I decided it is high-time to build a small workspace in my tiny SF apartment. There were things I knew I still needed but wrestled with some tough choices (like which Oscilloscope to buy.) I wanted either a nice Wishlist on Amazon or at least a great list to start my journey. I found a few decent starting points in the form of video & blogs: How to set up an electronics lab/workshop at home So You Want to Build Electronics How to equip your EE lab The first link is actually a transcription from +EEVblog /by +Dave Jones ( EEVblog is an awesome blog and YouTube channel, you should subscribe .) The second blog /by  +Kenneth Finnegan  covers more of the components side. What I couldn't find is a complete compiled list with links to purchase. So I made one! I put together a simple Amazon Affiliate store called Maker Workbench Equipment List . I merged what I thought made sense and added a bunch of items

Google+ Pages, Events and Hangouts On Air for organizers (part 1)

If you run a conference, meetup or event, you're probably thinking about increasing your presence on Google+. I've recently helped a few folks set up their Google+ presence in haste so I thought it would be worth typing notes on what you need to know. I've observed 3 types of events being organized on Google+: A yearly conference or unconf that it is a stand-alone brand, such as CES . An umbrella conference with several related or affiliated events, like JSConf . A broad collection of many local communities, such as the Google Developer Groups . In this multipart series, I'll dive into each main part:   Google+ Pages ,  Events  &  Hangouts On Air , starting with Google+ Pages. I'll also touch on YouTube channels. Google+ Pages In the past, organizers would create a brand new email for their event, like myconf-needs-a-gmail@gmail.com. You don't need to do that anymore. Actually, DON'T CREATE ONE OFF GMAILS ANYMORE!  Using you're existing