mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-18 08:43:47 +08:00
Open Source
This commit is contained in:
1
jd.sh
1
jd.sh
@@ -925,6 +925,7 @@ detect_config_version() {
|
|||||||
## npm install 子程序,判断是否为安卓,判断是否安装有yarn
|
## npm install 子程序,判断是否为安卓,判断是否安装有yarn
|
||||||
npm_install_sub() {
|
npm_install_sub() {
|
||||||
local cmd_1 cmd_2
|
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
|
type yarn >/dev/null 2>&1 && cmd_1=yarn || cmd_1=npm
|
||||||
[[ $SYSTEM = Android ]] && cmd_2="--no-bin-links" || cmd_2=""
|
[[ $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
|
$cmd_1 install $cmd_2 --registry=https://registry.npm.taobao.org || $cmd_1 install $cmd_2
|
||||||
|
Reference in New Issue
Block a user