krakenjs / kappa

A hierarchical npm-registry proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm search supposed to work?

iliakan opened this issue · comments

I've installed https://github.com/npm/npm-registry-couchapp, and pointed kappa to the replicated skim registry.

Npm install works, but npm search:

iliakan> npm search kappa
npm WARN Building the local index for the first time, please be patient
npm http request GET http://registry.javascript.ru:5555/-/all
npm http 504 http://registry.javascript.ru:5555/-/all
npm http request GET http://registry.javascript.ru:5555/-/all
npm http 504 http://registry.javascript.ru:5555/-/all
npm http request GET http://registry.javascript.ru:5555/-/all
npm http 504 http://registry.javascript.ru:5555/-/all
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "search" "kappa"
npm ERR! node v0.11.14
npm ERR! npm  v2.0.0
npm ERR! code E504

npm ERR! Gateway Time-out : -/all

Is it normal?

Could this be the issue? I suspect those /-/all requests are taking > 5 seconds.

Removed the timeout.

iliakan> npm search kappa
npm WARN Building the local index for the first time, please be patient
npm http request GET http://registry.javascript.ru:5555/-/all
npm http request GET http://registry.javascript.ru:5555/-/all
npm http request GET http://registry.javascript.ru:5555/-/all
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/Users/iliakan/.nvm/v0.11.14/bin/npm" "search" "kappa"
npm ERR! node v0.11.14
npm ERR! npm  v2.0.2
npm ERR! code ECONNRESET

npm ERR! network socket hang up
npm ERR! network This is most likely not a problem with npm itself
npm 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! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/iliakan/npm-debug.log

This works for me. Reopen if this is still a problem.