增加npm镜像源配置

This commit is contained in:
whyour
2022-09-06 00:21:53 +08:00
parent 70571a9d34
commit 687d16e21b
4 changed files with 21 additions and 6 deletions
+7
View File
@@ -11,6 +11,13 @@ cp -fv $nginx_conf /etc/nginx/nginx.conf
cp -fv $nginx_app_conf /etc/nginx/conf.d/front.conf
sed -i "s,QL_BASE_URL,${qlBaseUrl},g" /etc/nginx/conf.d/front.conf
pm2 l &>/dev/null
if [[ $PipMirror ]]; then
pip3 config set global.index-url $PipMirror
fi
if [[ $NpmMirror ]]; then
npm config set registry $NpmMirror
fi
echo
echo -e "======================2. 安装依赖========================\n"