Skip to content

Commit

Permalink
fix(getNpmToken): add missing encoding argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed May 3, 2019
1 parent dbe369f commit 4a752e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getNpmToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const getNpmToken = once(
if (NPM_TOKEN) return NPM_TOKEN
try {
const homedir = os.homedir()
const npmrc = await fs.readFile(`${homedir}/.npmrc`)
const npmrc = await fs.readFile(`${homedir}/.npmrc`, 'utf8')
const match = /:_authToken=([a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12})/.exec(
npmrc
)
Expand Down

0 comments on commit 4a752e0

Please sign in to comment.