leanderlee/node-couch-admin

This is NOT an issue, but a question.

Opened this issue · 1 comments

I have NPM registry and I want to use this to get to the backend database like _users.
How can I do it ?
The NPM registry is using the couch db and there is a _users.couch" database in "/usr/local/lib/npme/couch/" folder.

when I try to run

var admin = require('couch-admin')({
    url: 'http://9.xx.xx.xx:5984',
    user: 'admin',
    pass: 'xxxxxx'
});
console.log (" going to create an user");

admin.createUser('leander', 'unhackable password', function (err) {
// Added a user!     
    console.log (err);
})

I get a ECONNREFUSED !
So I changed the port to 8800, hoping to get to the admin, but there the code seems hung.

Also -I want to get all the users registered on NpMEnterprise - How do I go about it ?
Any help or reply would be appreciated.

Are you sure you have the right permissions?