Comments (9)
Looking in to this problem. Here's what I see:
- imagemin-optipng depends on optipng-bin
- optipng-bin has a postinstall script which attempts to
run
the package - This
run
likely fails on CI as there’s no optipng binary. The install script then attempts to download the correct binary from sourceforge.net - The binary download definitely fails (our CI boxes don't have web access)
- The download script appears to log an error, but this is either a silent log or a noop. This doesn't exit with a
>0
code as it should. - When attempting to
spawn
withoptipng-bin
’s pathspawn
fails with aENOENT
because there's no binary at that path: it never was download.
from imagemin-optipng.
Appearently opti-png bin file is infected with ML/PE-A malware. If you have an antimalware or similar tool, it will detect and remove the file. At least that's the case on my end that fails to install from npm
from imagemin-optipng.
npm rebuild solved the problem for me.
from imagemin-optipng.
@kevva @shinnn @sindresorhus @jdalton @ihodev ^^
from imagemin-optipng.
Experiencing the same issue.
from imagemin-optipng.
+1
from imagemin-optipng.
This is a major issue breaking our builds.
from imagemin-optipng.
+1 to major issue breaking builds
from imagemin-optipng.
Shoot, the bad download could also come from this download method. Rough stack trace:
- Install script calls
BinWrapper#run
- which calls
BinWrapper#findExisting
BinWrapper#findExisting
stats for the vendor directory, which fails- which calls
BinWrapper#download
, which triggers a download based on the OS/architecture
This process could fail, too, maybe?!
from imagemin-optipng.
Related Issues (20)
- Can I add to this plugin optional argument '-nx'? HOT 3
- Using false for bitDepthReduction, colorTypeReduction, or paletteReduction causes error HOT 26
- Using with gulp HOT 1
- Compilation fails HOT 16
- Single PNG file always causes decoder error in IE11 HOT 1
- issues on Ubuntu HOT 8
- Got here from optipng-bin, which says I want to use this... but why? HOT 4
- Provide env var for passing optipng binary path? HOT 2
- How to use multiple threads for multiple trials?
- Installation error HOT 1
- Unable to run demo using nodejs HOT 1
- Security issue CVE-2021-33623
- Use optipng from path if available. HOT 1
- 国内下载请用cnpm,亲测有效
- none
- Fails to build on Apple Silicon devices (Arm64) HOT 3
- Please upgrade to version 7 or higher. HOT 1
- On Freebsd 10 (x64), we cannot use the optipng in the vendor folder HOT 1
- optimizationLevel 0 Error in file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagemin-optipng.