我已经通过msi安装程序安装了iisnode x64和nodejs x32,这导致node.is被安装在
c:\program files (x86)\nodejs
它已成功将自身安装到 PATH 环境变量中。从命令行运行“node”在任何地方都适用。但它在 IIS 中不起作用,因为它会显示以下消息:
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.
我已经尝试过this blog的建议- 即在 web.config 中手动设置路径。这没有帮助。我也尝试过重新安装 Node 。
有什么建议吗?
最佳答案
对于您的问题,我找不到您链接的博客中提到的任何其他答案。我能找到的所有报告的问题都报告相同的答案,大多数人都得到了帮助。我认为你走在正确的道路上,所以我能给你的唯一提示。再试一次,并确保在应用程序池中尝试 nodeProcessCommandLine empty|C:\Program Files (x86)\nodejs|C:\Program Files\nodejs 的每种组合以及启用/禁用 32 位应用程序。
此处报告了相同的问题和解决方案:
- https://admin-ahead.com/forum/websitepanel/node-js-error!/
- http://admin-ahead.com/blog/node-js-installation-windows-2008-r2-server/
- http://www.elylucas.net/post/error-running-node-js-in-iisexpress-and-iisnode/
- https://github.com/tjanczuk/iisnode/issues/302
- Error running node app in WebMatrix
示例 web.config 的一部分 ( https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config )由iisnode的作者
<configuration>
<system.webServer>
<iisnode
nodeProcessCommandLine=""%programfiles%\nodejs\node.exe""
/>
</system.webServer>
</configuration>
嗯,可能是在nodeProcessCommandLine设置中使用了"吗?
关于node.js - iisnode 在 Windows 8 上找不到我的 32 位 Node.js 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23468370/