isaacs/npm — Issue #1577: npm search fails
Author: fkefer
Created: 2011-10-20 12:47:11+00:00
State: open

Hi,

I tried the following command:

npm search express

being confronted with the following result (logfile output):

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'search', 'express' ]
info using npm@1.0.99
info using node@v0.4.12
verbose config file /root/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
WARN Building the index for the first time, please be patient
verbose GET /-/all
verbose raw, before any munging /-/all
verbose url resolving [ 'https://registry.npmjs.org/', './-/all' ]
verbose url resolved https://registry.npmjs.org/-/all
ERR! Error: [object Object] : -/all
ERR! at Request.callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:181:12)
ERR! at Request. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:341:18)
ERR! at Request.emit (events.js:64:17)
ERR! at IncomingMessage. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:309:16)
ERR! at IncomingMessage.emit (events.js:81:20)
ERR! at HTTPParser.onMessageComplete (http.js:133:23)
ERR! at CleartextStream.ondata (http.js:1231:22)
ERR! at CleartextStream._push (tls.js:303:27)
ERR! at SecurePair.cycle (tls.js:577:20)
ERR! at EncryptedStream.write (tls.js:96:13)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 2.6.32-5-amd64
ERR! command "node" "/usr/local/bin/npm" "search" "express"
ERR! cwd /var/node/www
ERR! node -v v0.4.12
ERR! npm -v 1.0.99
verbose exit [ 1, true ]

I swiped node & npm entirely from my disk and reinstalled both, did so on another machine too, same result.