0

【图中输入err】【1】【1】:https://i.stack.imgur.com/pelro.png

TypeError: Cannot read property 'createStream' of undefined
> this is my code: 
const rfsStream = rfs.createStream('server.log',  size: '10M',
interval: '1d', 
path: path.join(__dirname, 'public', 'logs'), });

app.use(morgan('combined', { stream: rfsStream }));
4

0 回答 0