- 运行npm run dev报错
- 原因:node.js/npm版本较高
- 找到报错所指的位置:G:\workspace-vsCode\iviewDemo\webpack.dev.config.js:10:8
将fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {});
改成fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {});
- 如图
iview TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
最新推荐文章于 2023-04-19 18:18:21 发布