Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wraithgar committed Feb 2, 2021
1 parent 6437097 commit 567c9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/npm.js
Expand Up @@ -173,8 +173,8 @@ const npm = module.exports = new class extends EventEmitter {
if (node && node.toUpperCase() !== process.execPath.toUpperCase()) {
log.verbose('node symlink', node)
process.execPath = node
this.config.execPath = node
}
this.config.execPath = node

await this.config.load()
this.argv = this.config.parsedArgv.remain
Expand Down

0 comments on commit 567c9bd

Please sign in to comment.