私はすべてのモジュールをインストールして、CMDを使用してこのスクリプトを実行する必要があります。このスクリプトをwebmatrixを通じてnode.jsで実行しているとき:このスクリプトを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のテンプレートを試しましたが、うまくいきます。
さて、あなたは 'application'の代わりに' app'を試しましたか?それがエラーの内容です。 – pimvdb
また、http://expressjs.com/guide.htmlの例を使用する方が簡単です。 –
申し訳ありませんが、もう一度ご確認ください。 – user1362630