'registry' is not in the npm registry. #2750

Closed
andreyst opened this Issue Aug 23, 2012 · 2 comments

Comments

Projects
None yet
3 participants

I'm getting errors both when using my replicated registry and when using original isaacs.iriscouch.com registry. When using default one (registry.npmjs.org) everything's fine, but I can't figure out, how to replicate it. Not only search isn't working, installing some of the packages (not all of them) returns the same error (I just forgot exact packages that return an error). Any advice?

$ cat ~/.npmrc
registry = http://isaacs.iriscouch.com/registry
$ npm search eyes
npm WARN Building the local index for the first time, please be patient
npm http GET http://isaacs.iriscouch.com/registry/-/all
npm http 404 http://isaacs.iriscouch.com/registry/-/all
npm ERR! 404 'registry' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 12.0.0
npm ERR! command "node" "/usr/local/bin/npm" "search" "eyes"
npm ERR! cwd /Users/koriza
npm ERR! node -v v0.8.3
npm ERR! npm -v 1.1.43
npm ERR! code E404
npm ERR! stack Error: 404 Not Found: registry
npm ERR! stack at RegClient. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:242:14)
npm ERR! stack at Request.init.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:120:22)
npm ERR! stack at Request.EventEmitter.emit (events.js:91:17)
npm ERR! stack at Request. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:555:16)
npm ERR! stack at Request.EventEmitter.emit (events.js:88:17)
npm ERR! stack at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/usr/local/lib/node_modules/npm/node_modules/request/main.js:517:14)
npm ERR! stack at IncomingMessage.EventEmitter.emit (events.js:115:20)
npm ERR! stack at IncomingMessage._emitEnd (http.js:366:10)
npm ERR! stack at HTTPParser.parserOnMessageComplete as onMessageComplete
npm ERR! stack at Socket.socketOnData as ondata
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/koriza/npm-debug.log
npm ERR! not ok code 0

$ npm install eyes
npm http GET http://isaacs.iriscouch.com/registry/eyes
npm http 200 http://isaacs.iriscouch.com/registry/eyes
eyes@0.1.7 node_modules/eyes

PS: there's a typo (?) here https://github.com/isaacs/npmjs.org#using-the-registry-with-the-npm-client, in previous paragraph - description says 'replicate http://isaacs.ic.ht/registry', but code sample says 'replicate http://isaacs.iriscouch.com'. Guess iriscouch.com is the right one.

Contributor

luk- commented Mar 9, 2013

Some of the guides you're using to do this may be a bit out of date. I've done this a few times and I usually install couch, set up replication using /_replicator instead of /_replicate because the former supports resume after restarts. If you handle the replication like that you'll get everything, then just install the couchapp bits per an existing guide. I don't know if this is really the best place to report this kind of issue but catch me on irc sometime if your'e still having trouble, i can probably help you get going

luk- closed this Mar 9, 2013

Member

edef1c commented Mar 10, 2013

For reference: @andreyst was missing the _rewrite part. Your npm registry URL would be along the lines of http://localhost:5984/registry/_design/app/_rewrite (assuming your CouchDB database is http://localhost:5984/registry)
This is documented in Using the registry with the npm client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment