Hi I am trying run node on IIS as a subdirectory of an existing website.
https://somewebsite/node like so
And it works but when I go to a specific js file I got this message, not sure what to do.
The iisnode module is unable to start the node.exe process. Make sure the node.exe executable is available at the location specified in the system.webServer/iisnode/@nodeProcessCommandLine element of web.config. By default node.exe is expected in one of the directories listed in the PATH environment variable.
Added the following code in web.config file and it works!
<iisnode nodeProcessCommandLine="C:\Program Files\nodejs\node.exe" />
You should consider two important points.
I recommend you read this article for setting the right path of the node on the "system.webServer/iisnode".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With