node.js - iisnode 在 Windows 8 上找不到我的 32 位 Node.js 安装

标签 node.js iisnode

我已经通过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 位应用程序。

此处报告了相同的问题和解决方案:

示例 web.config 的一部分 ( https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config )由iisnode的作者

<configuration>
  <system.webServer>
    <iisnode
      nodeProcessCommandLine="&quot;%programfiles%\nodejs\node.exe&quot;"
    />
  </system.webServer>
</configuration>

嗯,可能是在nodeProcessCommandLine设置中使用了"吗?

关于node.js - iisnode 在 Windows 8 上找不到我的 32 位 Node.js 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23468370/

相关文章:

javascript - 如何在已部署的 Heroku Node 应用程序上获取基本 url 变量

javascript - 如何在模板字符串文字中的变量内部写入变量?

node.js - 无法下载 msnodesql-0.2.1-v0.10-x64.msi

asp.net - 如何修改 web.config 以不重写某个 url?

node.js http-proxy 自定义路由

asp.net-mvc - 一起使用 ASP.Net MVC 和 node.js

javascript - 如何将 AIML 与 Node.js 结合使用?

node.js - 部署到heroku : Invalid end points

node.js - @types/node 安装的 typescript 版本找不到模块“child_process”

node.js - 如何修复 Azure 中的 500.1002 错误?