Skip to content

imagemin:dist" (imagemin) task Error: spawn optipng.exe ENOENT in file client/assets/images/yeoman.png #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aditya61085 opened this issue Dec 11, 2015 · 6 comments
Labels

Comments

@aditya61085
Copy link

Hi

I just installed angular fullstack latest version and grunt serve worked fine.
grunt build is failing with attached error:

Running "imagemin:dist" (imagemin) task
Warning: Error: spawn C:\00 ADITYA\programming\steptosteps3\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\vendor\optipng.exe ENOENT in file client/assets/images/yeoman.png Use --force to continue.

When I use --force, it build but images are not copied.

Plz help to resolve this issue.

3a62cefa-9f8b-11e5-84fa-871d5c35d3aa

@Awk34
Copy link
Member

Awk34 commented Dec 13, 2015

Try npm uninstall grunt-contrib-imagemin then npm install grunt-contrib-imagemin

@Awk34 Awk34 closed this as completed Dec 13, 2015
@Awk34 Awk34 added the upstream label Dec 13, 2015
@aditya61085
Copy link
Author

Hi Thanks a lot for your reply. But still its failing in same step with different error:

Kindly help please.

capture

@Awk34
Copy link
Member

Awk34 commented Dec 13, 2015

#1382

@aditya61085
Copy link
Author

Thanks a lot. That worked.

Butt 1 major issue:
My image file client\assets\images\abc.png now got copied to dist\public\assets\images\04b26038.abc.png
I am able to view it as well from dist.

But when I deploy to heroku then it gives 404 for www.XYV.com/assets/images/abc.png
When I try www.XYV.com/assets/images/04b26038.abc.png, then it doesnt give 404 but doesnt even shows the image. Just an empty small box with border.

Also jpg load fine. Its only happening with pngs.

I know this issue is not related to angular fullstack but would appreciate if you can be of any help.

@aditya61085
Copy link
Author

production-capture

@Awk34
Copy link
Member

Awk34 commented Dec 14, 2015

@aditya61085 is #802 the same as your issue? If so please continue the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants