node.js on Windows

By Dan Baker, published 2010-09-09

I finally broke down, and setup node.js on my Windows XP box. The following is what I recommend doing: Walk through the page at github. My comments on that page are as follows:
  1. download cygwin
  2. install cygwin on your Windows box
  3. run cygwin (Start -> Cygwin -> Cygwin Bash Shell) or the "Cygwin" shortcut installed on the desktop
  4. clone node.js repository. Visit nodejs change log to read about recent versions
  5. build node.js
  6. setup DNS
  7. Create a node.js application (http server app)
  8. Start this node.js app
  9. Use the running node.js app in a browser
  10. Stop node.js by pressed Ctrl-C
After using node in cygwin for awhile, I realized I needed to enhance my cygwin, so I did the following:
  1. $ exit
  2. Note: exit cygwin
  3. Re-run Setup.exe
  4. The setup program used to install cygwin (see Step#2 above)
  5. Run cygwin again
  6. Installing "NPM" (If you want to)

About the Author

Name:
Dan Baker
Location:
Lindon, UT
Github:
danbaker

Dan loves programming. JavaScript is awesome!

About UtahJS.com

UtahJS is the website for the Utah JavaScript Users Group that meets to discuss and enjoy JavaScript!

JavaScript in the browser, on the server or just about anywhere else.

We love JavaScript but quite often talk about other topics such as CSS, HTML, cross browser coding, the internet… pretty much, anything that we find interesting.

Everyone is welcome. Please join us!