diff options
author | isaacs <i@izs.me> | 2020-08-18 02:55:33 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-08-18 22:22:26 +0300 |
commit | e929b28c0d9040d136d70534702ac2067aa0ff06 (patch) | |
tree | 0777c396c4110cbd57783657786bda471aca585f /lib/bin.js | |
parent | 5dadeb83845a27f59cf4adfeb19bc8f07c3eec0f (diff) |
bin: use our path util instead of osenv
Diffstat (limited to 'lib/bin.js')
-rw-r--r-- | lib/bin.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bin.js b/lib/bin.js index e2b2a31da..9861a7ed5 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)') |