日志如下所示>cros-cms-web@1.3.1dev/Users/guoyuyi/Desktop/cros-cms-web>webpack-dev-server--content-base./--open--inline--hot--compress--configbuild/webpack.dev.config.jsHappy[happybabel]:Version:4.0.1.Threads:4(sharedpool)fs.js:133thrownewERR_INVALID_CALLBACK();^TypeError[ERR_INVALID_CALLBACK]:CallbackmustbeafunctionatmaybeCallback(fs.js:133:9)atObject.write(fs.js:556:14)at/Users/guoyuyi/Desktop/cros-cms-web/build/webpack.dev.config.js:12:8atFSReqCallback.args[asoncomplete](fs.js:145:20)npmERR!codeELIFECYCLEnpmERR!errno1npmERR!cros-cms-web@1.3.1dev:`webpack-dev-server--content-base./--open--inline--hot--compress--configbuild/webpack.dev.config.js`npmERR!Exitstatus1npmERR!npmERR!Failedatthecros-cms-web@1.3.1devscript.npmERR!Thisisprobablynotaproblemwithnpm.Thereislikelyadditionalloggingoutputabove.npmERR!Acompletelogofthisruncanbefoundin:npmERR!/Users/guoyuyi/.npm/_logs/2019-03-22T14_08_24_600Z-debug.log
2 回答
饮歌长啸
TA贡献1951条经验 获得超3个赞
报错说你的配置文件里有问题呢,注意这一段,都给出定位了,排查一下吧TypeError[ERR_INVALID_CALLBACK]:CallbackmustbeafunctionatmaybeCallback(fs.js:133:9)atObject.write(fs.js:556:14)at/Users/guoyuyi/Desktop/cros-cms-web/build/webpack.dev.config.js:12:8atFSReqCallback.args[asoncomplete](fs.js:145:20)
添加回答
举报
0/150
提交
取消