Git Product home page Git Product logo

Comments (9)

swashcap avatar swashcap commented on July 30, 2024 2

Looking in to this problem. Here's what I see:

  1. imagemin-optipng depends on optipng-bin
  2. optipng-bin has a postinstall script which attempts to run the package
  3. 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
  4. The binary download definitely fails (our CI boxes don't have web access)
  5. 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.
  6. When attempting to spawn with optipng-bin’s path spawn fails with a ENOENT because there's no binary at that path: it never was download.

from imagemin-optipng.

SerdarSanri avatar SerdarSanri commented on July 30, 2024 2

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.

Alexandre-Passerelle avatar Alexandre-Passerelle commented on July 30, 2024 1

npm rebuild solved the problem for me.

from imagemin-optipng.

Jesterovskiy avatar Jesterovskiy commented on July 30, 2024

@kevva @shinnn @sindresorhus @jdalton @ihodev ^^

from imagemin-optipng.

ianks avatar ianks commented on July 30, 2024

Experiencing the same issue.

from imagemin-optipng.

smorcuend avatar smorcuend commented on July 30, 2024

+1

from imagemin-optipng.

ianks avatar ianks commented on July 30, 2024

This is a major issue breaking our builds.

from imagemin-optipng.

naseem-qadium avatar naseem-qadium commented on July 30, 2024

+1 to major issue breaking builds

from imagemin-optipng.

swashcap avatar swashcap commented on July 30, 2024

Shoot, the bad download could also come from this download method. Rough stack trace:

  1. Install script calls BinWrapper#run
  2. which calls BinWrapper#findExisting
  3. BinWrapper#findExisting stats for the vendor directory, which fails
  4. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.