增加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
@@ -338,6 +338,13 @@ patch_version() {
echo
fi
if [[ $PipMirror ]]; then
pip3 config set global.index-url $PipMirror
fi
if [[ $NpmMirror ]]; then
npm config set registry $NpmMirror
fi
}
## 对比脚本