Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(npm): use --userconfig when querying for npm cache config (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
katemihalikova authored and zkat committed Jun 4, 2017
1 parent 1c5cada commit 21bc3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function getNpmCache (opts) {
if (opts.userconfig) {
args.push('--userconfig', opts.userconfig)
}
return child.exec(npmPath, ['config', 'get', 'cache'])
return child.exec(npmPath, args)
}).then(cache => cache.trim())
}

Expand Down

0 comments on commit 21bc3bf

Please sign in to comment.