Skip to content

Commit

Permalink
Fix npx on node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Oct 4, 2023
1 parent 78af86e commit cfbd974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module.exports = function runTask (task, options) {
newBasename = basename.replace('pnpx', 'pnpm') // eslint-disable-line no-process-env
}

npmPath = newBasename === basename
npmPath = newBasename !== basename
? path.join(path.dirname(process.env.npm_execpath), newBasename)
: process.env.npm_execpath // eslint-disable-line no-process-env
}
Expand Down

0 comments on commit cfbd974

Please sign in to comment.