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 0d40bf3 commit 046f967Copy full SHA for 046f967
lib/config/pacote.js
@@ -1,6 +1,7 @@
1
'use strict'
2
3
const BB = require('bluebird')
4
+const Buffer = require('safe-buffer').Buffer
5
6
const cp = require('child_process')
7
const npm = require('../npm')
@@ -60,7 +61,10 @@ function pacoteOpts (moreOpts) {
60
61
if (key === '_authToken') {
62
opts.auth[nerfDart].token = val
63
} else if (key.match(/password$/i)) {
- opts.auth[nerfDart].password = val
64
+ opts.auth[nerfDart].password =
65
+ // the config file stores password auth already-encoded. pacote expects
66
+ // the actual username/password pair.
67
+ Buffer.from(val, 'base64').toString('utf8')
68
} else if (key === 'always-auth') {
69
opts.auth[nerfDart].alwaysAuth = val
70
} else {
0 commit comments