Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails on windows 7 #170

Closed
erratik opened this issue Mar 19, 2014 · 13 comments
Closed

npm install fails on windows 7 #170

erratik opened this issue Mar 19, 2014 · 13 comments

Comments

@erratik
Copy link

erratik commented Mar 19, 2014

Unable to succesfully install imagemin on Windows 7!

Running "imagemin:dist" (imagemin) task
Warning: Cannot find module 'optipng-bin' Use --force to continue.

I opened an issue on optipng-bin but no answer yet, so hopefully someone can help here!

I also tried installing optipng-bin on its own.. :/

@vladikoff
Copy link
Member

@erratik what error do you get when you try to install optipng-bin?

@jamesplease
Copy link
Member

Potentially related to #161

@erratik
Copy link
Author

erratik commented Mar 20, 2014

@vladikoff

optipng-bin@0.3.1 postinstall D:\Perforce\1826\tjacques_MTL-
in
node lib/check.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT
at errnoException (net.js:904:11)
at Object.afterConnect as oncomplete
npm ERR! optipng-bin@0.3.1 postinstall: node lib/check.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the optipng-bin@0.3.1 postinstall script.

@kevva
Copy link
Member

kevva commented Mar 21, 2014

@erratik, using a proxy?

@erratik
Copy link
Author

erratik commented Mar 21, 2014

@kevva, I am, and I ran:

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

(with my company's proxy)

I just tried again this morning... optipng-bin, gifsicle and jpegtran-bin fail:

npm WARN optional dep failed, continuing gifsicle@0.1.5
npm WARN optional dep failed, continuing jpegtran-bin@0.2.4
npm WARN optional dep failed, continuing optipng-bin@0.3.2

@kevva
Copy link
Member

kevva commented Mar 21, 2014

Fixed by kevva/bin-wrapper@3935b8d.

@erratik
Copy link
Author

erratik commented Mar 21, 2014

Sweet! Except, I'm a supern00b at node.js, So how do I use this with my shell?

npm install bin-wrapper

And then....? ;)

@kevva
Copy link
Member

kevva commented Mar 21, 2014

Just reinstall grunt-contrib-imagemin.

@erratik
Copy link
Author

erratik commented Mar 21, 2014

so after bin-wrapper install:

bin-wrapper@0.2.1 node_modules\bin-wrapper
├── find-file@0.1.2
├── executable@0.1.0
├── bin-check@0.1.1
├── progress@1.1.4
├── rimraf@2.2.6
├── tempfile@0.1.2 (uuid@1.4.1)
├── download@0.1.10 (each-async@0.1.2, mkdirp@0.3.5, through2@0.4.1, request@2.31.0, decompress@0.1.6)
└── mout@0.9.0

and after after grunt-contrib-imagemin install, same errors :/

tried installing optipng-bin on its own, also giving same errors after bin-wrapper install :(

@kevva
Copy link
Member

kevva commented Mar 21, 2014

Try setting npm config set https_proxy http://proxy.company.com:8080 too.

@erratik
Copy link
Author

erratik commented Mar 21, 2014

No luck :(

@kevva
Copy link
Member

kevva commented Mar 21, 2014

Well, we're using https://github.com/mikeal/request. Try searching for a solution there.

@vladikoff
Copy link
Member

Try version 0.6.0-pre by installing it from GitHub via npm install gruntjs/grunt-contrib-imagemin
I've tested it on OS X, Ubuntu and Windows with the latest stable version of Node.JS.
Please report any errors you get with a full error log, operating system, version of Node.JS.

Once we are sure 0.6.0-pre works well, we are going to publish it.
Thanks to @kevva for updating image-min!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants