为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

2 回答

port = process.env.PORT || 3000,


是env,environment环境的缩写。


0 回复 有任何疑惑可以回复我~

Error: No default engine was specified and no extension was provided.

   at new View (/Users/Adam/Sites/Imooc/node_modules/express/lib/view.js:41:42)

   at Function.app.render (/Users/Adam/Sites/Imooc/node_modules/express/lib/application.js:499:12)

   at ServerResponse.res.render (/Users/Adam/Sites/Imooc/node_modules/express/lib/response.js:900:7)

   at app.get.res.render.title (/Users/Adam/Sites/Imooc/app.js:12:6)

   at Layer.handle [as handle_request] (/Users/Adam/Sites/Imooc/node_modules/express/lib/router/layer.js:76:5)

   at next (/Users/Adam/Sites/Imooc/node_modules/express/lib/router/route.js:100:13)

   at Route.dispatch (/Users/Adam/Sites/Imooc/node_modules/express/lib/router/route.js:81:3)

   at Layer.handle [as handle_request] (/Users/Adam/Sites/Imooc/node_modules/express/lib/router/layer.js:76:5)

   at /Users/Adam/Sites/Imooc/node_modules/express/lib/router/index.js:227:24

   at Function.proto.process_params (/Users/Adam/Sites/Imooc/node_modules/express/lib/router/index.js:305:12) 


请问这是什么原因

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
node+mongodb 建站攻略(一期)
  • 参与学习       91860    人
  • 解答问题       889    个

带你完整实现一个从前端到后端的项目,初中级前端开发工程师必学课程

进入课程
意见反馈 帮助中心 APP下载
官方微信