Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iisnode module is unable to start the node.exe process

Hi I am trying run node on IIS as a subdirectory of an existing website.

https://somewebsite/node like so

  1. Download and installed to the windows machine https://github.com/azure/iisnode/wiki/iisnode-releases

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.

like image 648
Learn in Tamil Avatar asked May 09 '18 01:05

Learn in Tamil


2 Answers

Added the following code in web.config file and it works!

<iisnode nodeProcessCommandLine="C:\Program Files\nodejs\node.exe" />
like image 99
Learn in Tamil Avatar answered Sep 18 '22 18:09

Learn in Tamil


You should consider two important points.

  1. Check the path of node.exe on the "system.webServer/iisnode".
  2. Check you did install nodejs from the official site. You have to able to find node.exe in the default path: C:\Program Files\nodejs\node.exe

I recommend you read this article for setting the right path of the node on the "system.webServer/iisnode".

like image 26
Pooya Avatar answered Sep 20 '22 18:09

Pooya