简体   繁体   English

当我做Grunt咕噜声时出错:dist

[英]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.

相关问题 当grunt发送时,找不到Angular.js模块:dist,但是grunt服务正常 - Angular.js Module not found when grunt serve:dist, but grunt serve works fine grunt serve:dist无法与Backbone Generator RequireJS一起使用 - grunt serve:dist not working with Backbone Generator RequireJS yeoman:与grunt发送的jit-grunt错误 - yeoman : jit-grunt error with grunt serve 咕unt的serve:dist(或build:dist)正在创建损坏的CSS,但没有错误 - Grunt serve:dist (or build:dist) is creating broken css but no errors 咕serve的发球命令引发错误 - Grunt serve command throws error grunt服务:dist-&gt;错误:[$ injector:unpr]未知提供程序:utilProvider &lt;-util &lt;-NavbarController - grunt serve: dist -> Error: [$injector:unpr] Unknown provider: utilProvider <- util <- NavbarController 运行grunt serve:dist时AngularJS ui-view不显示任何内容 - AngularJS ui-view displays nothing when running grunt serve:dist 使用生成器角度全栈种子运行“咕gr服务”时发出咕unt错误 - grunt error when running “grunt serve” with generator-angular-fullstack seed 如何从自耕农中输出一个不需要咕噜咕噜的视觉信息 - How to output a dist from yeoman that doesnt require a grunt serve to view Yeoman发电机角度咕噜声:dist打破我的应用程序 - Yeoman generator-angular grunt serve:dist breaks my app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM