如何连接npm连接模块?

时间:2014-06-29 06:10:36

标签: javascript node.js npm

我使用了命令:node-dev script.js

{
    var connect = require('connect');
    var app = connect()
      .use(connect.static('public'))
      .use(function (req, res) {
        res.end("Couldn't find it.");
      })
      .listen(3000);
}

here is error screen shot

0 个答案:

没有答案