app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use('/user',require('./controllers'));
var express = require('express');
var router = module.exports = express.Router();
router.use('/signup', require('./signup'));
var express = require('express');
var router = module.exports = express.Router();
router.get('/', function(req, res, next) {
res.render('signup', { title: 'Signup' });
});
然后在浏览器中使用“http://localhost:3000/user/signup/”,抛出错误:
我在网上等,谢谢。
答案 0 :(得分:1)
您应指定包含ENU \ x64 \ SharedManagementObjects.msi
的所有目录,例如:
views