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

Problems behind corporate proxy #315

Closed
kkoehler opened this issue Jul 31, 2015 · 2 comments
Closed

Problems behind corporate proxy #315

kkoehler opened this issue Jul 31, 2015 · 2 comments

Comments

@kkoehler
Copy link

Hi,

we're working behind a proxy server. When running "npm install" we get the following error:


[email protected] postinstall /home/user/dev/reference-trunk/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
node lib/install.js

⚠ Request to https://raw.github.com/imagemin/jpegtran-bin/3.0.4/vendor/linux/x64/jpegtran failed
⚠ jpegtran pre-build test failed
ℹ compiling from source
✖ GotError: Request to http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.1/libjpeg-turbo-1.4.1.tar.gz failed
at ClientRequest. (/home/user/dev/reference-trunk/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/got/index.js:177:7)
at ClientRequest.g (events.js:199:16)
at ClientRequest.emit (events.js:107:17)
at Socket.socketErrorListener (_http_client.js:271:9)
at Socket.emit (events.js:107:17)
at net.js:950:16
at process._tickCallback (node.js:355:11)
Caused By: Error: getaddrinfo ENOTFOUND downloads.sourceforge.net
at errnoException (dns.js:44:10)

at GetAddrInfoReqWrap.onlookup as oncomplete

The http, http-proxy, etc are configured.
npm install itself works (I'm getting the grunt-contrib-imagemin module as you can see ;-))

Thanks,
Kristian

@sindresorhus
Copy link
Member

Proxies are not currently supported: sindresorhus/got#79

You can pass the --ignore-scripts flag to npm when installing to have it not run postinstall script that tries to download the binaries, but you'll then have to install them manually yourself.

@kevva
Copy link
Member

kevva commented Jul 31, 2015

Might be fixed in kevva/download@c352736.

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

3 participants