Admin-Ahead Community

Windows => Control Panels => WebsitePanel => Topic started by: Chetan Singh on March 10, 2014, 09:05:45 am

Title: Node.js error!
Post by: Chetan Singh on March 10, 2014, 09:05:45 am
Hello,

If you are getting this error while accessing your domain on the browser (after Node.js installation). Follow this step to fix this.

Error:

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

Fixed:

====================>>>
Create a symbolic link from the 32-bit path to the 64-bit one.

At the cmd.exe prompt:

mklink /D "C:\Program Files (x86)\nodejs" "C:\Program Files\nodejs"
====================>>>

or  try placing this at the bottom of web.config

Code: [Select]
<iisnode watchedFiles="*.js;node_modules\*;routes\*.js;views\*.jade"
nodeProcessCommandLine="\program files\nodejs\node.exe"/>

Thank you,