Lines Matching +full:user +full:- +full:config
14 'npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy] [--always-auth]'
24 let registry = npm.config.get('registry')
25 const scope = npm.config.get('scope')
26 const creds = npm.config.getCredentialsByURI(npm.config.get('registry'))
29 const scopedRegistry = npm.config.get(scope + ':registry')
30 const cliRegistry = npm.config.get('registry', 'cli')
38 auth = require('./auth/' + npm.config.get('auth-type'))
45 npm.config.del('_token', 'user') // prevent legacy pollution
46 if (scope) npm.config.set(scope + ':registry', registry, 'user')
47 npm.config.setCredentialsByURI(registry, newCreds)
48 npm.config.save('user', cb)