修改check命令,安装依赖使用代理

修改apk源地址
This commit is contained in:
whyour
2022-02-16 23:06:12 +08:00
parent 71b0c10997
commit 86df495b67
4 changed files with 6 additions and 14 deletions
+2
View File
@@ -242,6 +242,7 @@ fix_config() {
}
npm_install_sub() {
set_proxy
if [ $is_termux -eq 1 ]; then
npm install --production --no-bin-links --registry=https://registry.npm.taobao.org || npm install --production --no-bin-links
elif ! type pnpm &>/dev/null; then
@@ -249,6 +250,7 @@ npm_install_sub() {
else
pnpm install --production --registry=https://registry.npm.taobao.org || pnpm install --production
fi
unset_proxy
}
npm_install_1() {