Angular 2 site not running on Windows Server 2016


I'm following along in this video tutorial in order to learn how to deploy our Angular 2 site to a Windows Server 2016 machine:

Everything the video suggests works. I've got IISNode, Node Express, and the starter Angular 2 application all working.

Now I want to deploy my much more complex Angular 2 application. It was originally designed to run on Linux so I'm not sure what to tweak to get it to run on Windows Server 2016. I'm told I can just take the contents of dist and plop into into the website folder on Windows Server 2016. That's what I did.

When I browse to it on the server, however, I get this:

nodejstest stack trace.png

The stack trace tells me it got to server.js, so that's a good sign. Where things seem to be fouling up is when it looks for module.js. I did a search on the server for module.js and couldn't find it. The stack trace ends with a failure to find the module 'compression'. <-- I'm not sure what this is.

Here is my web.config:


<!-- indicates that the server.js file is a node.js application to be handled by the iisnode module -->
<add name="iisnode" path="server/server.js" verb="*" modules="iisnode" />

<rule name="sendToNode">
<match url="/*" />
<action type="Rewrite" url="server/server.js" />


Can someone please help me troubleshoot this?

1 answer

0 vote

This does not appear to have anything to do with Atlassian stuff, are you sure you are in the right place?

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted yesterday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

246 views 35 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot