Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
argv.on('version', function() {
console.log('cnpm@%s (%s)%snpm@%s (%s)%snode@%s (%s)%snpminstall@%s (%s)%sprefix=%s %s%s %s %s %sregistry=%s',
pkg.version,
__filename,
os.EOL,
require('npm/package.json').version,
require.resolve('npm'),
os.EOL,
process.version.substring(1),
process.execPath,
os.EOL,
require('npminstall/package.json').version,
require.resolve('npminstall'),
os.EOL,
config.prefix,
os.EOL,
os.platform(),
os.arch(),
os.release(),
os.EOL,
config.cnpmRegistry
);
process.exit(0);
});