This is a problem running the Nodejs package manager (NPM) on Windows in an network running ActiveDirectory - and the problem seems to be because I'm behind a corporate proxy.
I want NPM INSTALL to work...
We have a proxy which uses WPAD and authentication.
From the Wpad.dat I have gotten the proxy's FQDN and port (see below).
I have used
NPM CONFIG SET PROXY = http://<domain>%5C<username>:<passwordwith#>@ddcrpit311v1.corp.<company>.global:8080
to set the proxy information (with username & password) and also
NPM CONFIG SET HTTPS-PROXY = <as above>
I have set
NPM CONFIG SET registry = http://registry.npmjs.org/
so that I don't have to worry about SSL and (just in case)
NPM CONFIG SET strict-ssl = false
Still I am getting errors:
>npm install sax-jsnpm http GET http://registry.npmjs.org/sax-jsnpm http GET http://registry.npmjs.org/sax-jsnpm http GET http://registry.npmjs.org/sax-jsnpm ERR! network getaddrinfo ENOTFOUNDnpm ERR! network This is most likely not a problem with npm itselfnpm ERR! network and is related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! networknpm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly. See: 'npm help config'npm ERR! System Windows_NT 5.1.2600npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe""C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js""install""sax-js"npm ERR! cwd C:\Documents and Settings\morsli00npm ERR! node -v v0.10.10npm ERR! npm -v 1.2.25npm ERR! syscall getaddrinfonpm ERR! code ENOTFOUNDnpm ERR! errno ENOTFOUNDnpm ERR!npm ERR! Additional logging details can be found in:npm ERR! C:\Documents and Settings\morsli00\npm-debug.lognpm ERR! not ok code 0
From the log the following looks important:
20 verbose url resolving [ 'http://registry.npmjs.org/', './sax-js' ]21 verbose url resolved http://registry.npmjs.org/sax-js22 info trying registry request attempt 1 at 16:00:2023 http GET http://registry.npmjs.org/sax-js24 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND25 info trying registry request attempt 2 at 16:00:3126 http GET http://registry.npmjs.org/sax-js27 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND28 info trying registry request attempt 3 at 16:01:3129 http GET http://registry.npmjs.org/sax-js30 silly lockFile 4d5ae745-sax-js sax-js@31 silly lockFile 4d5ae745-sax-js sax-js@32 error network getaddrinfo ENOTFOUND32 error network This is most likely not a problem with npm itself32 error network and is related to network connectivity.32 error network In most cases you are behind a proxy or have bad network settings.32 error network32 error network If you are behind a proxy, please make sure that the32 error network 'proxy' config is set properly. See: 'npm help config'33 error System Windows_NT 5.1.260034 error command "C:\\Program Files\\nodejs\\\\node.exe""C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js""install""sax-js"35 error cwd C:\Documents and Settings\morsli0036 error node -v v0.10.1037 error npm -v 1.2.2538 error syscall getaddrinfo39 error code ENOTFOUND40 error errno ENOTFOUND41 verbose exit [ 1, true ]
I tried without the %5C, as well as /\ all with the same result.
I tried configuring fiddler2 to work as a reverse proxy, and I set the proxy address to localhost:8888, and configured fiddler to connect to the proxy - but then I ran into errors as well.
Is there a simple proxy program I can set up as a reverse proxy that will authenticate for me? Is there something in Node to try?
Any ideas welcome!