Skip to content

Commit cfbd974

Browse files
committedOct 4, 2023
Fix npx on node 16
1 parent 78af86e commit cfbd974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/run-task.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = function runTask (task, options) {
172172
newBasename = basename.replace('pnpx', 'pnpm') // eslint-disable-line no-process-env
173173
}
174174

175-
npmPath = newBasename === basename
175+
npmPath = newBasename !== basename
176176
? path.join(path.dirname(process.env.npm_execpath), newBasename)
177177
: process.env.npm_execpath // eslint-disable-line no-process-env
178178
}

0 commit comments

Comments
 (0)
Please sign in to comment.