You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: