refactor: n 下载 node 时使用国内镜像

This commit is contained in:
力皓 2021-06-04 15:03:38 +08:00
parent fd1a8c0c19
commit 197745eb88

View File

@ -8,6 +8,9 @@ if [ ! -d "$BUILD_DEST" ]; then
fi
tnpm i -g n
# 使用官方源有较大概率会 block
export N_NODE_MIRROR=https://npm.taobao.org/mirrors/node
echo "Switch node version to 14"
n 14
echo "Node Version"