谁能告诉我为什么 pug api 不适用于他们文档页面中的简单示例
const pug = require('pug');
// Compile the source code
const compiledFunction = pug.compileFile('template.pug');
// Render a set of data
console.log(compiledFunction({
name: 'Timothy'
}));
// "<p>Timothy's Pug source code!</p>"
不管我做什么,它一直在告诉 pug.compileFile 不是一个函数