当前位置: 动力学知识库 > 问答 > 编程问答 >

node.js - Connect static error during starting node server

问题描述:

i am trying to connect my node js server using this script

var connect = require('connect');

var port = 3000;

connect.createserver(

connect.static(__dirname)

).listen(port);

console.log('connect via port'+ port);

this error is occur

TypeError: connect.static is not a function

分享给朋友:
您可能感兴趣的文章:
随机阅读: