Looking at the js code, two lines are tripping errors
console.log('>> Node.js server listening on port: ' app.get('port'));
should that not be
console.log('>> Node.js server listening on port: ' + app.get('port'));
and
}
// The endpoint for uploads
app.post("/uploads", function (req, res, next) {
should that not be
});
// The endpoint for uploads
app.post("/uploads", function (req, res, next) {
simply copying and pasting the example server.js and running it in node does not work...
once those two changes are made, node gives an error cannot find module 'express'
Edit -
express install -g doesn't work. had to use npm install express
now getting error
app.configure(function....
app is not defined - line 14
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…