我已经安装了所有需要使用 CMD 运行此脚本的模块。当我通过 webmatrix 在 node.js 中运行此脚本时:
var http = require('http');
var everyauth = require('everyauth');
var app = require('express').createServer();
app.get('/', function(request, response) {
response.send('Hello Express!!');
});
app.listen(2455);
它不工作。错误是:
iisnode encountered an error when processing the request.
HRESULT: 0x2
HTTP status: 500
HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The node.exe process has not written any information to the stdout or stderr.
我尝试过使用不同的博客脚本,但它们不起作用。我在 webmatrix 中尝试了 Steven Sanderson 的模板,并且确实有效。