8000 refactor: replace --disturl option with NODEJS_ORG_MIRROR env variable · vuejs/vue-cli@5d2c8da · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d2c8da

Browse files
committed
refactor: replace --disturl option with NODEJS_ORG_MIRROR env variable
for better compatibility with pnpm 4 (which does not allow the `--disturl` option)
1 parent badf63d commit 5d2c8da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vue/cli/lib/util/ProjectPackageManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ class PackageManager {
126126
args.push(`--registry=${registry}`)
127127

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

132133
return args

0 commit comments

Comments
 (0)
0