- 【node.js】サーバサイドjavascript 2【Rhino】
913 :デフォルトの名無しさん[sage]:2014/12/08(月) 09:05:55.77 ID:BmKLZLRH - 「はじめてのNode.js -サーバーサイドJavaScriptでWebアプリを開発する」
のminichatのサンプルを動かすと http://sourceforge.jp/users/hylom/pf/node_sample_minichat/wiki/FrontPage /node_sample_minichat-3c00c5b$ node app.js /node_sample_minichat-3c00c5b/app.js:14 app.configure(function(){ ^ TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method 'configure' とエラーが出ます。で stackoverflow だと configure method has been removed from express as of version 4.0.0 http://stackoverflow.com/questions/22202232/express-has-no-method-configure-error らしいので app.configure(function() を修正してみたのですが今度は /node_sample_minichat-3c00c5b$ node app.js Error: Most middleware (like favicon) is no longer bundled with Express and must be installed separa とエラーになります。minichatのサンプルは最新版のnode.jsではかなり頑張らないと 動かないのでしょうか? node.js のバージョンは v0.10.33 です
|