Error while requesting package from own mirror #77

Closed
smelchior opened this Issue Aug 18, 2012 · 2 comments

Comments

Projects
None yet
3 participants

I tried to create my own npmjs.org mirror as described here https://github.com/isaacs/npmjs.org/blob/master/README.md
The replication went fine and i also can view the documents (http://localhost:5984/registry/coffee-script gives proper data). Unfortunately the couchapp fails somehow on this url http://localhost:5984/registry/_design/scratch/_rewrite/coffee-script: https://raw.github.com/gist/3384475/25a5ddfca59ac51a9a968a56e76ff2c7b1e68cb0/gistfile1.json

Any idea why this is happening?

The documentation is wrong. This is how I set mine up.

With your couchdb registry database setup, run the following in the npmjs.org source:

export npm_package_config_couch=http://localhost:5984/registry
./push.sh
./load-views.sh
curl http://localhost:5984/registry/_design/scratch -X COPY -H destination:'_design/app'
couchapp push www/app.js http://localhost:5984/registry
Member

terinjokes commented Mar 4, 2014

The documentation should be accurate now.

terinjokes closed this Mar 4, 2014

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