Skip to content

Commit

Permalink
refactor: replace --disturl option with NODEJS_ORG_MIRROR env variable
Browse files Browse the repository at this point in the history
for better compatibility with pnpm 4 (which does not allow the
`--disturl` option)
  • Loading branch information
sodatea committed Oct 16, 2019
1 parent badf63d commit 5d2c8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli/lib/util/ProjectPackageManager.js
Expand Up @@ -126,7 +126,8 @@ class PackageManager {
args.push(`--registry=${registry}`)

if (registry === registries.taobao) {
args.push(`--disturl=${TAOBAO_DIST_URL}`)
// for node-gyp
process.env.NODEJS_ORG_MIRROR = TAOBAO_DIST_URL
}

return args
Expand Down

0 comments on commit 5d2c8da

Please sign in to comment.