isaacs/npm — Issue #1745: Cannot build npm on windows behing a aproxy
Author: feugy
Created: 2011-11-21 15:51:20+00:00
State: open

Hello guys !

I'm trying to build the latest npm on windows 7 behind a corporate proxy.

Its fails on this error :
info it worked if it ends with ok
verbose cli [ 'node', 'D:\\Workspaces\\npm\\cli.js', 'install', 'npm', '-fg' ]
info using npm@1.0.106
info using node@v0.6.2
verbose config file C:\Users\a127380\.npmrc
verbose config file C:\Program Files (x86)\etc\npmrc
verbose config file D:\Workspaces\npm\npmrc
verbose into C:\Program Files (x86)\nodejs [ 'npm' ]
verbose cache add npm
verbose cache add [ 'npm', null ]
silly cache add: name, spec, args [ undefined, 'npm', [ 'npm', null ] ]
verbose parsed url { pathname: 'npm', path: 'npm', href: 'npm' }
info addNamed [ 'npm', '' ]
verbose addNamed [ null, '' ]
verbose GET npm
verbose raw, before any munging npm
verbose url resolving [ 'https://registry.npmjs.org/', './npm' ]
verbose url resolved https://registry.npmjs.org/npm
ERR! Error: socket hang up
ERR! at createHangUpError (http.js:1092:15)
ERR! at CleartextStream. (http.js:1175:27)
ERR! at CleartextStream.emit (events.js:88:20)
ERR! at Array.0 (tls.js:731:22)
ERR! at EventEmitter._tickCallback (node.js:192:40)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "node" "D:\\Workspaces\\npm\\cli.js" "install" "npm" "-fg"
ERR! cwd D:\Workspaces\npm
ERR! node -v v0.6.2
ERR! npm -v 1.0.106
ERR! code ECONNRESET
verbose exit [ 1, true ]

I've set my personnal configuration file (C:\Users\a127380\.npmrc) this way :

proxy=http://my-proxy:1234
https-proxy=http://my-proxy:1234

I tried also to set directly the environnement variable HTTP_PROXY and HTTPS_PROXY, but no luck...

Any ideas ?