Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.95.167
module.exports = bin
var npm = require('./npm.js')
var osenv = require('osenv')
bin.usage = 'npm bin [--global]'
function bin (args, silent, cb) {
if (typeof cb !== 'function') {
cb = silent
silent = false
}
var b = npm.bin
var PATH = osenv.path()
if (!silent) console.log(b)
process.nextTick(cb.bind(this, null, b))
if (npm.config.get('global') && PATH.indexOf(b) === -1) {
npm.config.get('logstream').write('(not in PATH env variable)\n')
}
}
|