Skip to content

Commit 567c9bd

Browse files
committed
fix(lib/npm): do not clobber config.execPath
If we were not asked to clobber config.execPath, don't do it. Credit: @wraithgar Reviewed-by: @isaacs
1 parent 6437097 commit 567c9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ const npm = module.exports = new class extends EventEmitter {
173173
if (node && node.toUpperCase() !== process.execPath.toUpperCase()) {
174174
log.verbose('node symlink', node)
175175
process.execPath = node
176+
this.config.execPath = node
176177
}
177-
this.config.execPath = node
178178

179179
await this.config.load()
180180
this.argv = this.config.parsedArgv.remain

0 commit comments

Comments
 (0)