Skip to content

Commit 4b5bcd3

Browse files
committed
fix: update npm install command to use npmmirror registry
1 parent fe8f8ca commit 4b5bcd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup_cn.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ install_component() {
10471047
exit 1
10481048
}
10491049

1050-
if ! "$node_bin_path" "$npm_bin_path" install --no-audit --no-fund --loglevel=warn; then
1050+
1051+
if ! "$node_bin_path" "$npm_bin_path" install --registry=https://registry.npmmirror.com --no-audit --no-fund --loglevel=warn; then
10511052
cprint red bold "NPM依赖项安装失败 $component"
10521053
popd >/dev/null
10531054
cleanup_install_tmp

0 commit comments

Comments
 (0)