We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5b049 commit 992799cCopy full SHA for 992799c
lib/adduser.js
@@ -75,11 +75,9 @@ class AddUser extends BaseCommand {
75
76
async updateConfig ({ newCreds, registry, scope }) {
77
this.npm.config.delete('_token', 'user') // prevent legacy pollution
78
-
+ this.npm.config.setCredentialsByURI(registry, newCreds)
79
if (scope)
80
this.npm.config.set(scope + ':registry', registry, 'user')
81
82
- this.npm.config.setCredentialsByURI(registry, newCreds)
83
await this.npm.config.save('user')
84
}
85
0 commit comments