mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: 自动选择tuna镜像进行安装
This commit is contained in:
1 parent
fe6f0208f5
commit
50f862334e
3 files changed
+3
-3
No files matched your search
@@ -20,7 +20,7 @@ echo "Installing NodeJS"
|
||||
curl -o- https://cdn.jsdelivr.net/gh/nvm-sh/nvm@v0.36.0/install.sh | sed 's/raw.githubusercontent.com\/nvm-sh\/nvm\//cdn.jsdelivr.net\/gh\/nvm-sh\/nvm@/g' | bash
|
||||
export NVM_DIR=/root/.nvm
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
nvm install 14
|
||||
NVM_NODEJS_ORG_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/ nvm install 14
|
||||
nvm use 14
|
||||
npm i yarn -g
|
||||
echo "Installing pm2"
|
||||
|
||||
Reference in new issue
Block a user