iisnode module is unable to start the node.exe process
Asked Answered
M

5

10

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.

Muntin answered 9/5, 2018 at 1:10 Comment(0)
M
23

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

<iisnode nodeProcessCommandLine="C:\Program Files\nodejs\node.exe" />
Muntin answered 9/5, 2018 at 21:33 Comment(2)
as iisnode installation required to nodejs installed at location "Program Files (x86)" for me it work by a little change on the path: <iisnode nodeProcessCommandLine="C:\Program Files (x86)\nodejs\node.exe" />Tourer
very useful answer and it's true that you have to guide IISNODE for node.exe pathChipman
B
1

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".

Burthen answered 25/9, 2019 at 7:21 Comment(0)
M
0

I had working node 6x and iisnode. When i installed node 8x for Angular 7 on my Windows 8, I got the same error as a result of rest API call as in question

For me, just needed to add the path to node.exe in the Windows environment variables and iisnode worked as before

Marven answered 27/10, 2018 at 3:14 Comment(0)
V
0

In windows Server

first you should check environment paths

C:\> Path

remove all previous installation and uninstall nodejs from other package managers

then download 64-bit msi installer from nodejs.org / download page

then install again

and restart server

then you can Comment this line again In Web.Config

  <!--     
    
    One more setting that can be modified is the path to the node.exe executable and the interceptor:
    
    <iisnode
      nodeProcessCommandLine="&quot;%programfiles%\nodejs\node.exe&quot;" 
      interceptor="&quot;%programfiles%\iisnode\interceptor.js&quot;" />
    
    -->
Vespid answered 12/8, 2020 at 6:26 Comment(0)
B
-1

By setting the values in C:\Program Files\iisnode\www\configuratio\web.config is not always fixing the issue . Please follow the below steps and try to set in IIS server level.

  1. Select IIS server and open Configuration editor https://www.screencast.com/t/SWcy4C5m

  2. Select the section system.webServer/iisnode and set the nodeProcessCommandLine value to node.exe full path. https://www.screencast.com/t/e8N6MFeWEueS

This fixed my issue. Hope this will be helpful to someone.

Bartender answered 6/2, 2019 at 11:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.