[英]Getting Error when I do Grunt grunt serve:dist
this is the error log 这是错误日志
node:10096) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Expected a buffer
(node:10096) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Expected a buffer
(node:10096) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: Expected a buffer Use --force to continue.
It is highly recommended not to do --force in grunt serve command. 强烈建议不要在grunt serve命令中执行--force。 But you have a warning, so, maybe for you in this case, if you run
grunt serve --force
you can find where in the code (or the gruntfile) you have the TypeError. 但是你有一个警告,所以,在这种情况下可能对你来说,如果你运行
grunt serve --force
你可以在代码(或gruntfile)中找到你有TypeError的位置。
Do you have install mozjpeg? 你有安装mozjpeg吗? Try downgrading mozjpeg to version 5.1.0
尝试将mozjpeg降级到5.1.0版
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.