Skip to content

This is NOT an issue, but a question. #1

@kiranshashiny

Description

@kiranshashiny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions