[英]can't build yeoman angular app
I have a problem with building an angular js web app generated with yeoman angular generator. 我在构建用yeoman角度生成器生成的angular js Web应用程序时遇到问题。 I can run the
grunt serve
, and it's completely fine. 我可以用
grunt serve
,这很好。 But when I tried to build the app using grunt
, I got the following errors. 但是,当我尝试使用
grunt
构建应用程序时,出现以下错误。
Running "concurrent:dist" (concurrent) task
Warning: Running "imagemin:dist" (imagemin) task
Warning: Error: spawn ENOENT in file app/images/yeoman.png Use --force to continue.
The thing is I can build that app (exactly the same app, just copy and paste) on other latop, using same OS, same npm version, same grunt version. 关键是我可以使用相同的操作系统,相同的npm版本,相同的grunt版本在其他latop上构建该应用程序(完全相同的应用程序,只需复制和粘贴)。
I'm using: 我正在使用:
mac osx - v10.9.5 npm - v2.0.2 grunt-cli - v0.1.13 grunt - v0.4.5 yeoman - v1.2.1
Please, help me how to fix that error. 请帮助我如何解决该错误。 thanks
谢谢
You have to update imagemin. 您必须更新imagemin。 (You may edit imagemin version at your package.json).
(您可以在package.json中编辑imagemin版本)。
I observed the same issue with imagemin 0.8.2. 我用imagemin 0.8.2观察到了同样的问题。 Imagemin 0.9.2 works fine for me.
Imagemin 0.9.2对我来说很好。 Imagemin 0.9.2 require npm version >=2.1.5, you have to update npm too(npm install -g npm).
Imagemin 0.9.2需要npm版本> = 2.1.5,您也必须更新npm(npm install -g npm)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.