mwaylabs / generator-m-ionic

Advanced workflows and setup for building rock-solid Ionic apps
MIT License
670 stars 133 forks source link

gulp build --minify error #504

Closed rafialikhan closed 7 years ago

rafialikhan commented 7 years ago

Hi, the gulp build --minify is suddenly started throwing the following error. Was working fine till 7the of March. Any ideas? However it does build fine with just gulp build.

[16:04:42] Starting 'build-language'...

events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn /home/ubuntu/repos/ApplicantPortalUI/node_modules/optipng-bin/vendor/optipng ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17)

MathiasTim commented 7 years ago

mhhh just a guess, because we get this a lot in the last days: What Node Version are you using? There was also an ENOENT error with the cordova package in #500 #499 #503. In this issue upgrading to Node 6.X fixed the problem.