imagemin / jpeg-recompress-bin

jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency
https://github.com/danielgtaylor/jpeg-archive
MIT License
25 stars 20 forks source link

Build on windows fail #12

Open TolotraRam opened 8 years ago

TolotraRam commented 8 years ago

Hi,

jpeg-recompress-bin@3.0.1 postinstall C:\Program Files\nodejs\node_modules\jpeg-recompress-bin
node lib/install.js

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

Error: spawn UNKNOWN
at exports._errnoException (util.js:837:11)
at ChildProcess.spawn (internal/child_process.js:298:11)
at exports.spawn (child_process.js:339:9)
at C:\Users\user\AppData\Roaming\nvm\v4.1.1\node_modules\jpeg-recompress-bin\node_modules\bin-check\index.j s:22:12
at C:\Users\user\AppData\Roaming\nvm\v4.1.1\node_modules\jpeg-recompress-bin\node_modules\executable\index. js:27:4
at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli .js" "install" "--global" "jpeg-recompress-bin"
npm ERR! node v4.1.1
npm ERR! npm v3.4.0
npm ERR! code ELIFECYCLE

npm ERR! jpeg-recompress-bin@3.0.1 postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpeg-recompress-bin@3.0.1 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 jpeg-recompress-bin 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 their info via:
npm ERR! npm owner ls jpeg-recompress-bin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\wamp\www\report\npm-debug.log

shinnn commented 8 years ago

Make sure you have the latest version of node.js and npm installed.

TolotraRam commented 8 years ago

Hi,

Got the same issue, update node to 4.4.5 and npm to 3.9.6

λ npm install --global jpeg-recompress-bin C:\Users\user\AppData\Roaming\npm\jpeg-recompress -> C:\Users\user\AppData\Roaming\npm\node_modules\jpeg-recompress-bin\cli.js

jpeg-recompress-bin@3.0.1 postinstall C:\Users\user\AppData\Roaming\npm\node_modules\jpeg-recompress-bin node lib/install.js

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

Error: spawn UNKNOWN at exports._errnoException (util.js:870:11) at ChildProcess.spawn (internal/child_process.js:298:11) at exports.spawn (child_process.js:362:9) at C:\Users\user\AppData\Roaming\npm\node_modules\jpeg-recompress-bin\node_modules\bin-check\index.js:22:12

at C:\Users\user\AppData\Roaming\npm\node_modules\jpeg-recompress-bin\node_modules\executable\index.js:27:4

at FSReqWrap.oncomplete (fs.js:82:15)

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--global" "jpeg-recompress-bin" npm ERR! node v4.4.5 npm ERR! npm v3.9.6 npm ERR! code ELIFECYCLE

npm ERR! jpeg-recompress-bin@3.0.1 postinstall: node lib/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the jpeg-recompress-bin@3.0.1 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 jpeg-recompress-bin 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 jpeg-recompress-bin npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls jpeg-recompress-bin npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: