I am having the problem setting up a web server. I downloaded the Cesium-b29 zip file and unzip in the C:/ drive.
"npm install connect" seems working since the code creates "node_modules" folder; however, after running "node server.js" I get "TypeError: Object function createServer() ..." error as showing below.
I would appreciate if you could provide me resolution/solution for this particular problem.
Thank you in advance.
Makiko
---- Code in CMD -----
C:\Cesium-b29>npm install connect
connect@3.0.1 node_modules\connect
├── parseurl@1.0.1
├── utils-merge@1.0.0
├── finalhandler@0.0.2 (escape-html@1.0.1)
└── debug@1.0.2 (ms@0.6.2)
C:\Cesium-b29>node server.js
C:\Cesium-b29\server.js:5
connect.static(__dirname)
^
TypeError: Object function createServer() {
function app(req, res, next){ app.handle(req, res, next); }
merge(app, proto);
merge(app, EventEmitter.prototype);
app.route = '/';
app.stack = ;
return app;
} has no method 'static'
at Object.<anonymous> (C:\Cesium-b29\server.js:5:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3