From d0c49b1c54d374a310b2c6f7b2a1409e11fbc9da Mon Sep 17 00:00:00 2001 From: mdh67899 <8528207+mdh67899@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:00:44 +0800 Subject: [PATCH] Update build.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 淘宝老的 http://registry.npm.taobao.org 域名已停止服务,切换到https://registry.npmmirror.com --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 874b2fce..85bed640 100755 --- a/build.sh +++ b/build.sh @@ -206,7 +206,7 @@ function install_front { config_front echo_green "\n>>> $(gettext '开始安装前端依赖...')" cnpm_base_dir=$(dirname $(dirname $(which npm))) - npm install -g cnpm --registry=https://registry.npm.taobao.org --prefix ${cnpm_base_dir} + npm install -g cnpm --registry=https://registry.npmmirror.com --prefix ${cnpm_base_dir} cd ferry_web && cnpm install && npm run build:prod && cp -r web ../build/template && cp -r web/static/* ../build/static/ }