Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kiranshashiny opened this issue Jun 2, 2017 · 1 comment
Open

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

kiranshashiny opened this issue Jun 2, 2017 · 1 comment

Comments

@kiranshashiny
Copy link

kiranshashiny commented Jun 2, 2017

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.

@leanderlee
Copy link
Owner

Are you sure you have the right permissions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants