imagemin / imagemin-gifsicle

Imagemin plugin for Gifsicle
MIT License
118 stars 55 forks source link

spawn Unknown Error during npm install on Windows #14

Closed demisx closed 8 years ago

demisx commented 8 years ago

All other packages install ok.

$ node -v 
v6.2.1

$ npm -v
3.9.5

$ npm install imagemin-gifsicle                                                                                                              

> gifsicle@3.0.3 postinstall C:\cygwin64\home\dmoore\projects\sites\webcms2-core-mirror\node_modules\gifsicle                 
> node lib/install.js                                                                                                                        

internal/child_process.js:302                                                                                                                
    throw errnoException(err, 'spawn');                                                                                                      
    ^                                                                                                                                        

Error: spawn UNKNOWN                                                                                                                         
    at exports._errnoException (util.js:1007:11)                                                                                             
    at ChildProcess.spawn (internal/child_process.js:302:11)                                                                                 
    at exports.spawn (child_process.js:383:9)                                                                                                
    at C:\Users\app\projects\sites\webcms2-core-mirror\node_modules\bin-check\index.js:22:12                                  
    at C:\Users\app\projects\sites\webcms2-core-mirror\node_modules\executable\index.js:27:4                                  
    at FSReqWrap.oncomplete (fs.js:117:15)                                                                                                   
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:                                                                    
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14                                                   
npm WARN webcms-2@0.1.0 No repository field.                                                                                           
npm WARN webcms-2@0.1.0 No license field.                                                                                              
npm ERR! Windows_NT 6.1.7601                                                                                                                 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dmoore\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" 
imagemin-gifsicle"                                                                                                                           
npm ERR! node v6.2.1                                                                                                                         
npm ERR! npm  v3.9.5                                                                                                                         
npm ERR! code ELIFECYCLE                                                                                                                     

npm ERR! gifsicle@3.0.3 postinstall: `node lib/install.js`                                                                                   
npm ERR! Exit status 1                                                                                                                       
npm ERR!                                                                                                                                     
npm ERR! Failed at the gifsicle@3.0.3 postinstall script 'node lib/install.js'.                                                              
npm ERR! Make sure you have the latest version of node.js and npm installed.                                                                 
npm ERR! If you do, this is most likely a problem with the gifsicle package,                                                                 
npm ERR! not with npm itself.                                                                                                                
npm ERR! Tell the author that this fails on your system:                                                                                     
npm ERR!     node lib/install.js                                                                                                             
npm ERR! You can get information on how to open an issue for this project with:                                                              
npm ERR!     npm bugs gifsicle                                                                                                               
npm ERR! Or if that isn't available, you can get their info via:                                                                             
npm ERR!     npm owner ls gifsicle                                                                                                           
npm ERR! There is likely additional logging output above.                                                                                    

npm ERR! Please include the following file with any support request:                                                                         
npm ERR!     C:\cygwin64\home\dmoore\projects\amgen-sites\webcms2-core-mirror\npm-debug.log                                         
shinnn commented 8 years ago

npm ERR! Windows_NT 6.1.7601

Don't use ancient OS. Just upgrade to Windows 10.

demisx commented 8 years ago

@shinnn Hah-hah. You really think it's my choice? This is a requirement mandated by the client. No issues with other packages, just the gifsicle. Maybe that issue should be filed there instead?

shinnn commented 8 years ago

I just updated the Windows Gifsicle binaries to the latest version. https://github.com/imagemin/gifsicle-bin/commit/921dfab862d970fff5f23c991404f8833386061e

@demisx Can you try npm install imagemin-gifsicle again ? If the spawn UNKNOWN error still occurs, this is not what we can fix and, as you said, should be reported on https://github.com/kohler/gifsicle/issues instead.

demisx commented 8 years ago

Thank you. I ran the install five times and it failed 3 times out of those 5 with the spawn UKNOWN error. I've also received the same error for jpegtran-bin package, so this is clearly not an issue with imagemin-gifsicle, but rather the node/Windows environment. Strange that this error only happens trying to install the image processing packages and not the others. Anyways, thank you @shinnn for giving it a try. Now back to my Mac. 😄

shinnn commented 8 years ago

Now back to my Mac. 😄

Hope your client allows you to modernize the environment 🙏