Skip to content
Permalink
Browse files
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 567c9bd03a7669111fbba6eb6d1f12ed7cad5a1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/npm.js
@@ -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

0 comments on commit 567c9bd

Please sign in to comment.