mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-03 18:40:45 -05:00
refactor: replace --disturl option with NODEJS_ORG_MIRROR env variable
for better compatibility with pnpm 4 (which does not allow the `--disturl` option)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user