Skip to content

Windows NodeJS

Cooper Filby edited this page Oct 9, 2017 · 2 revisions

Node.js and IIS Node

More Info

Install Node.js

  1. Download Node.js from NodeJS Download
  2. Follow the instructions
  3. Navigate to C:\Program Files\ and copy the folder called nodejs and paste it into C:\Program Files (x86)
    This will avoid the 32-bit/64-bit confusion.

Install IIS and Enable .NET Framework

Make sure .NET 3.5 and 4.x are installed and started.

  1. Open Server Manager
    • Go to Start, All Programs, Administrative Tools
    • Select Server Manager
  2. Install IIS if not already installed.
  3. Enable .NET 3.5.1 in the Add Features Wizard
    • In the Server Manager, right click on Features and select Add Features
    • Check .NET Framework 3.5.1
    • Click Add Required Features in the Add Features Wizard dialog, if it appears
    • Click Next
    • Click Install
    • When the installation is complete, click Close

Note: You can disable IE Enhanced Security Configuration by doing the following:

  1. Open Server Manager
  2. Under Security Information, on the right, click on Configure IE ESC
  3. Set the settings for Administrators to Off
  4. Click OK

Install IISNode

  1. Go to IISNode Installation
  2. Scroll down until you see Installing for IIS 7.x/8.x and click on x64 to download the msi
  3. Accept and follow instructions

Verify whether IISNode is installed correctly or not.

  1. Make sure you have Default Web Site in your IIS
    • If not, create it from IIS by right clicking on the Site>Create a new site and follow this instructions
  2. From the administrative command prompt run:
    c:\>cd "Program Files\iisnode"
    c:\Program Files\iisnode>setupsamples.bat
  1. Upon running that and pressing Enter where asked, the following similar output should be seen:
    Press ENTER to continue or Ctrl-C to terminate.
    Press any key to continue . . .
    Ensuring IIS_IUSRS group has full permissions for “C:\Program Files\iisnode\www”
    …
    processed file: C:\Program Files\iisnode\www
    Successfully processed 1 files; Failed processing 0 files
    …success
    Ensuring the “Default Web Site/node” is removed if it exists…
    ERROR ( message:Must use exact identifier for APP object with verb DELETE. )
    …success
    Creating IIS site “Default Web Site/node” with node.js samples…
    APP object “Default Web Site/node” added
    VDIR object “Default Web Site/node” added
    …success
    INSTALLATION SUCCESSFUL. Check out the samples at http://localhost/node.
    Press any key to continue . . .
    C:\Program Files\iisnode>
  1. Now go back to IIS, you should see that there is a new website called node which has been added.
  2. Go to your browser and type http://localhost/node/, you should see the following:
    hosting node.js applications in IIS since 2011
    samples demonstrating basic features of hosting node.js applicatons in IIS 7.x

    ...

Install IIS URL Rewrite Extension

  1. Go to download link
  2. Click on Install this extension
  3. Run the installer, click Install, then I Accept
  4. Click Finish then Exit

With IIS Node installed, now you can build a Windows runnable version of SparkEd with Demeteorizer.

Clone this wiki locally