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

前端 未结 14 2602
别跟我提以往
别跟我提以往 2020-11-29 18:13

I am working through setting up a http server using node.js and engine. However, I keep running into issues that I have little information on how to resolve I would apprecia

14条回答
  •  伪装坚强ぢ
    2020-11-29 18:46

    set view engine following way

    app.set('views', path.join(__dirname, 'views'));
    app.set('view engine', 'jade');
    

提交回复
热议问题