Error: callback function required
at Function.engine (C:\Users\Administrator\node_modules\express\lib\application.js:295:11)
又是一个弱智问题,
我把
app.engine(‘art’,require(‘express-art-template’));
误拼写成了 `app.engine(‘art’,‘express-art-template’);`
还有其他小伙伴遇见这种问题是因为包名拼写错。。。在此一起记录一下。
我真是服了自己了。。。。经常遇见拼写错误这种脑残问题。