TypeError: Cannot read property 'id' of undefined
at /Users/anhao/Desktop/node/movieProject/app.js:107:23
at Layer.handle [as handle_request] (/Users/anhao/Desktop/node/movieProject/node_modules/express/lib/router/layer.js:95:5)
at /Users/anhao/Desktop/node/movieProject/app.js:107:23
at Layer.handle [as handle_request] (/Users/anhao/Desktop/node/movieProject/node_modules/express/lib/router/layer.js:95:5)
2016-06-17
var path = require('path');
// console.log(path);
app.set('views',path.join(__dirname,'./views'));
就可以解决 :Error: Failed to lookup view "index" in views directory "./views"
// console.log(path);
app.set('views',path.join(__dirname,'./views'));
就可以解决 :Error: Failed to lookup view "index" in views directory "./views"
2016-06-15
bower bootstrap#* ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/twbs/bootstrap.git", exit code of #128 fatal: unable to access 'https://github.com/twbs/bootstrap.git/': Empty reply from server
2016-06-07
创建根目录文件,安装以下模块
npm insatll express
npm insatll jada
npm insatll mongoose
npm insatll bower -g
npm insatll bootstrap
npm insatll express
npm insatll jada
npm insatll mongoose
npm insatll bower -g
npm insatll bootstrap
2016-06-06