isaacs/npm — Issue #1980: "npm install ender" failed
Author: cub-uanic
Created: 2012-01-03 05:55:41+00:00
State: open

Reporting bug as asked by npm.

Host system is Kubunut 11.10, node.js built with openssl support. When I'm trying to open "https://registry.npmjs.org/ender" in browser, I see message about untrusted certificate - could this be an issue?..

% npm install ender
npm http GET https://registry.npmjs.org/ender
npm ERR! Error: failed to fetch from registry: ender
npm ERR! at /home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)
npm ERR! at Request._callback (/home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)
npm ERR! at Request.callback (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:104:22)
npm ERR! at Request. (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:181:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:178:10)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at CleartextStream. (http.js:1174:13)
npm ERR! at CleartextStream.emit (events.js:88:20)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 3.0.0-14-generic
npm ERR! command "node" "/home/cub/lib/nodejs/bin/npm" "install" "ender"
npm ERR! cwd /home/cub
npm ERR! node -v v0.6.4
npm ERR! npm -v 1.1.0-beta-7
npm ERR! message failed to fetch from registry: ender
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/cub/npm-debug.log
npm not ok

% cat /home/cub/npm-debug.log
info it worked if it ends with ok
verbose cli [ 'node', '/home/cub/lib/nodejs/bin/npm', 'install', 'ender' ]
info using npm@1.1.0-beta-7
info using node@v0.6.4
verbose config file /home/cub/.npmrc
verbose config file /home/cub/lib/nodejs/etc/npmrc
verbose config file /home/cub/lib/nodejs/lib/node_modules/npm/npmrc
verbose into /home/cub [ 'ender' ]
verbose cache add ender
verbose cache add [ 'ender', null ]
silly cache add: name, spec, args [ undefined, 'ender', [ 'ender', null ] ]
verbose parsed url { pathname: 'ender', path: 'ender', href: 'ender' }
verbose addNamed [ 'ender', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'ender', '', false ]
verbose raw, before any munging ender
verbose url resolving [ 'https://registry.npmjs.org/', './ender' ]
verbose url resolved https://registry.npmjs.org/ender
http GET https://registry.npmjs.org/ender
silly get cb [ 304, undefined ]
ERR! Error: failed to fetch from registry: ender
ERR! at /home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)
ERR! at Request._callback (/home/cub/lib/nodejs/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)
ERR! at Request.callback (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:104:22)
ERR! at Request. (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:181:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest. (/home/cub/lib/nodejs/lib/node_modules/npm/node_modules/request/main.js:178:10)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at CleartextStream. (http.js:1174:13)
ERR! at CleartextStream.emit (events.js:88:20)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 3.0.0-14-generic
ERR! command "node" "/home/cub/lib/nodejs/bin/npm" "install" "ender"
ERR! cwd /home/cub
ERR! node -v v0.6.4
ERR! npm -v 1.1.0-beta-7
ERR! message failed to fetch from registry: ender
verbose exit [ 1, true ]