From bbc92fb8f3478ff67071ebaff551f01c1ea42ced Mon Sep 17 00:00:00 2001 From: Ben Blank Date: Fri, 27 Sep 2019 11:04:44 -0700 Subject: [PATCH] Fix figgyPudding error in `npm token` It seems that a couple of lines were missed when token.js was [changed to use figgyPudding][1] which [causes an error][2] when trying to run that command in certain circumstances. This patch fixes that error. [1]: https://github.com/npm/cli/commit/4cf850d2be118abce72b3cf533f13512e9844ad1#diff-398ed3b014436a5204583323ea29320b [2]: https://npm.community/t/npm-token-err-figgypudding-options-cannot-be-modified-use-concat-instead/10288 PR-URL: https://github.com/npm/cli/pull/259 Credit: @benblank Close: #259 Reviewed-by: @isaacs --- lib/token.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/token.js b/lib/token.js index 9b1fbef9cecf4..96a05e45664f4 100644 --- a/lib/token.js +++ b/lib/token.js @@ -118,7 +118,6 @@ function config () { }) } else { conf = conf.concat({ auth: {} }) - conf.auth = {} } if (conf.otp) conf.auth.otp = conf.otp return conf