Coder Social home page Coder Social logo

Comments (8)

panteng avatar panteng commented on May 20, 2024 47

It seems like something is wrong with your gulp-imagemin plugin.
Try uninstall it and install it again.

npm uninstall gulp-imagemin

npm install gulp-imagemin

Make sure there are no errors during installation.

from wechat-h5-boilerplate.

strever avatar strever commented on May 20, 2024 17

rm -rf node_modules
npm install
solve the problem.

probably because i run npm install before npm install -g node-gyp

from wechat-h5-boilerplate.

rafito avatar rafito commented on May 20, 2024 13

npm rebuild solve it here!

from wechat-h5-boilerplate.

chrisferagotti avatar chrisferagotti commented on May 20, 2024 6

Similar issue. I believe what worked for me was:

npm install node-gyp
npm uninstall gulp-imagemin
npm install gulp-imagemin

So, I think what they said above, just all in one post.

from wechat-h5-boilerplate.

maheshDe avatar maheshDe commented on May 20, 2024 4

npm rebuild

works for me.

from wechat-h5-boilerplate.

panteng avatar panteng commented on May 20, 2024

Yeah, imagemin depends on node-gyp.

from wechat-h5-boilerplate.

mrjohnskelton avatar mrjohnskelton commented on May 20, 2024

Same issue here. uninstall/reinstall of gulp-imagemin fixed symptoms. npm install hadn't previously reported any issues with the install. node-gyp installed.

Not sure if there is some hidden instability in package dependencies as my gulp task had been running fine in the same environment/project then spuriously stopped working. I'm not sure what had changed to introduce error.

<project>\node_modules\optipng-bin\vendor\optipng.exe folder and executable were missing, yielding the error/stacktrace:

Error: The system cannot find the path specified.

  at notFoundError (<project>\node_modules\cross-spawn\lib\enoent.js:11:11)
  at verifyENOENT (<project>\node_modules\cross-spawn\lib\enoent.js:46:16)
  at ChildProcess.cp.emit (<project>\node_modules\cross-spawn\lib\enoent.js:33:19)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

from wechat-h5-boilerplate.

DineshGon avatar DineshGon commented on May 20, 2024

None of the solutions worked for me. Any other recommendations. Warning: Error: spawn /applic/node_modules/optipng-bin/vendor/optipng ENOENT

from wechat-h5-boilerplate.

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.