Installing node.js, iisnode and npm on Windows
I thought I might have a quick play with node.js on Windows. There’s a bunch of conflicting information out there about how to install it. Here’s what works for me.
- First, you’ll need node.exe. Grab that from http://nodejs.org/. Click the “Download” button. Install it, using the defaults; it’ll go in C:\Program Files (x86)\nodejs.
- To run node on IIS, go to https://github.com/windowsazure/iisnode/downloads and grab the appropriate build. For me, this was iisnode-full-iis7-v0.1.16-x64.msi. Install it.
- Check that your iisnode installation is working correctly by following the instructions here.
- npm is now included in the nodejs installation.
- At this point, you should be able to run npm install express and good things should happen. Be sure to run this from your application folder. This is different from the instructions given by Tomek, which use ryppi.
- Verify that it’s working by trying out Tomek’s simple express application (same page as linked above).
Done. I’m still not sure what I’ll use it for instead of my usual fumbling about with ASP.NET MVC, but now I’m down with the kids, right?