diff --git a/lib/npm.js b/lib/npm.js index 7a15a29b2fed..40aa9bbd9b50 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