isaacs/npm — Issue #2232: Failure installing patr with 1.1.4
Author: novemberborn
Created: 2012-03-06 14:53:03+00:00
State: open

This works fine in 1.1.1, but fails in 1.1.4:

```sh
$ npm install patr
```

Debug log:

```
info it worked if it ends with ok
verbose cli [ 'node',
verbose cli '/usr/local/node0.6.12/bin/npm',
verbose cli 'install',
verbose cli 'patr' ]
info using npm@1.1.4
info using node@v0.6.12
verbose config file /Users/mark/.npmrc
verbose config file /usr/local/node0.6.12/etc/npmrc
verbose config file /usr/local/node0.6.12/lib/node_modules/npm/npmrc
verbose mkdir done: /Users/mark/Desktop 755
verbose cache add [ 'patr', null ]
silly cache add: name, spec, args [ undefined, 'patr', [ 'patr', null ] ]
verbose parsed url { pathname: 'patr', path: 'patr', href: 'patr' }
verbose addNamed [ 'patr', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'patr', '', false ]
verbose raw, before any munging patr
verbose url resolving [ 'https://registry.npmjs.org/', './patr' ]
verbose url resolved https://registry.npmjs.org/patr
http GET https://registry.npmjs.org/patr
ERR! Error: failed to fetch from registry: patr
ERR! at /usr/local/node0.6.12/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/usr/local/node0.6.12/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:31:9)
ERR! at Request._callback (/usr/local/node0.6.12/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:136:18)
ERR! at Request.callback (/usr/local/node0.6.12/lib/node_modules/npm/node_modules/request/main.js:119:22)
ERR! at Request. (/usr/local/node0.6.12/lib/node_modules/npm/node_modules/request/main.js:212:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest. (/usr/local/node0.6.12/lib/node_modules/npm/node_modules/request/main.js:209:10)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at CleartextStream. (http.js:1137:11)
ERR! at CleartextStream.emit (events.js:67:17)
ERR! You may report this log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Darwin 11.3.0
ERR! command "node" "/usr/local/node0.6.12/bin/npm" "install" "patr"
ERR! cwd /Users/mark/Desktop
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message failed to fetch from registry: patr
verbose exit [ 1, true ]
```

Note `http GET https://registry.npmjs.org/patr`. I think it hits a certificate error. Without the `https` that URL redirects to .

Again, it installs fine in 1.1.1, also under 0.6.12. It fails similarly in master.