Open Source

This commit is contained in:
root
2021-07-14 09:18:45 -04:00
parent 30a08c46f2
commit 686b6129ee

1
jd.sh
View File

@ -925,6 +925,7 @@ detect_config_version() {
## npm install 子程序判断是否为安卓判断是否安装有yarn
npm_install_sub() {
local cmd_1 cmd_2
type pnpm >/dev/null 2>&1 && cmd_1=pnpm || cmd_1=npm
type yarn >/dev/null 2>&1 && cmd_1=yarn || cmd_1=npm
[[ $SYSTEM = Android ]] && cmd_2="--no-bin-links" || cmd_2=""
$cmd_1 install $cmd_2 --registry=https://registry.npm.taobao.org || $cmd_1 install $cmd_2