相关疑难解决方法(0)

在WebMatrix中运行节点应用程序时出错

我安装了WebMatrix并按照这些说明在我的Windows 7计算机上安装IIS 7.

当我单击"运行"以运行我的快速节点应用程序时,浏览器会弹出并告诉我

iisnode模块无法启动node.exe进程.确保node.exe可执行文件在web.config 的system.webServer/iisnode/@nodeProcessCommandLine元素中指定的位置可用.默认情况下,node.exe应安装在x86系统上的%ProgramFiles%\nodejs文件夹和x64系统上的%ProgramFiles(x86)%\nodejs文件夹中.

这是我的web.config:

<configuration>
<system.webServer>

<handlers>
  <!-- indicates that the app.js file is a node.js application to be handled by the iisnode module -->
  <add name="iisnode" path="app.js" verb="*" modules="iisnode" />
</handlers>

<rewrite>
  <rules>
    <!-- Don't interfere with requests for logs -->
    <rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
      <match url="^[a-zA-Z0-9_\-]+\.js\.logs\/\d+\.txt$" />
    </rule>

    <!-- Don't interfere with requests for node-inspector debugging -->
    <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
      <match url="^app.js\/debug[\/]?" />
    </rule>

    <!-- First we consider whether the …
Run Code Online (Sandbox Code Playgroud)

runtime-error node.js webmatrix webmatrix-2

6
推荐指数
3
解决办法
6001
查看次数

标签 统计

node.js ×1

runtime-error ×1

webmatrix ×1

webmatrix-2 ×1