Skip to content

Commit

Permalink
bin: use our path util instead of osenv
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 18, 2020
1 parent 5dadeb8 commit e929b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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')
Expand All @@ -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)')
Expand Down

0 comments on commit e929b28

Please sign in to comment.