diff --git a/lib/bin.js b/lib/bin.js index e2b2a31dab355..9861a7ed5bfdc 100644 --- a/lib/bin.js +++ b/lib/bin.js @@ -1,4 +1,3 @@ -const osenv = require('osenv') const npm = require('./npm.js') const output = require('./utils/output.js') const usageUtil = require('./utils/usage.js') @@ -7,7 +6,7 @@ const cmd = (args, cb) => bin(args).then(() => cb()).catch(cb) const usage = usageUtil('bin', 'npm bin [-g]') const bin = async (args, cb) => { const b = npm.bin - const PATH = osenv.path() + const PATH = require('./utils/path.js') output(b) if (npm.flatOptions.global && !PATH.includes(b)) { console.error('(not in PATH env variable)')