Node.js Express框架生成破损的app.js?

我是Node.js中的新成员,并希望使用Express来创build一个简单的应用程序。

npm install -g express npm install -g ejs express test -t ejs cd test/ npm install 

现在我有一个应用程序框架。 但它被打破了。 例如我的app.js内容是

 ,/**, * Module dependencies., */,,var express = require('express'), , routes = require('./routes'), , user = require('./routes/user'), , http = require('http'), , path = require('path');,,var app = express();,,// all environments,app.set('port', process.env.PORT || 3000);,app.set('views', __dirname + '/views');,app.set('view engine', 'jade');,app.use(express.favicon());,app.use(express.logger('dev'));,app.use(express.bodyParser());,app.use(express.methodOverride());,app.use(app.router);,app.use(express.static(path.join(__dirname, 'public')));,,// development only,if ('development' == app.get('env')) {, app.use(express.errorHandler());,},,app.get('/', routes.index);,app.get('/users', user.list);,,http.createServer(app).listen(app.get('port'), function(){, console.log('Express server listening on port ' + app.get('port'));,});, 

和'节点应用程序'后抛出

 C:\Users\saxon\Downloads\123\test\app.js:1 ,/**, * Module d ^ node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ SyntaxError: Unexpected token , at Module._compile (module.js:429:25) at Object..js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Array.0 (module.js:479:10) at EventEmitter._tickCallback (node.js:192:40) 

       

网上收集的解决方案 "Node.js Express框架生成破损的app.js?"