diff options
author | Gar <gar+gh@danger.computer> | 2021-02-02 20:11:21 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-02-02 20:11:21 +0300 |
commit | 567c9bd03a7669111fbba6eb6d1f12ed7cad5a1b (patch) | |
tree | 99fd2e1bd684e047799924ca5745d5e12c3bd541 /lib | |
parent | 64370970653af5c8d7a2be2c2144e355aa6431b0 (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.js | 2 |
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 |