Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-02-02 20:11:21 +0300
committerGar <gar+gh@danger.computer>2021-02-02 20:11:21 +0300
commit567c9bd03a7669111fbba6eb6d1f12ed7cad5a1b (patch)
tree99fd2e1bd684e047799924ca5745d5e12c3bd541 /lib
parent64370970653af5c8d7a2be2c2144e355aa6431b0 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/npm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js
index 7a15a29b2..40aa9bbd9 100644
--- a/lib/npm.js
+++ b/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