sindresorhus / gulp-imagemin

Minify PNG, JPEG, GIF and SVG images
MIT License
1.9k stars 157 forks source link

npm install optipng error #345

Closed x1aodingdang closed 4 years ago

x1aodingdang commented 4 years ago

Hi all, on my case. I have just run manually the post-install script and it magically works node node_modules/optipng-bin/lib/install.js

Originally posted by @ayoubice in https://github.com/sindresorhus/gulp-imagemin/issues/236#issuecomment-267835310

x1aodingdang commented 4 years ago

Before doing so, add the following to the host file:

2.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com