diff --git a/build.sh b/build.sh index 874b2fcef9eba4a4b676c2ab54b05c1e6c0d0cf4..303d89f16ffa2d91e0c1f0653272791cbc77401f 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=http://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/ }