feat: force download node

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-10 00:54:41 +08:00
parent dd58e90047
commit 51a2c6b6ed

View File

@ -50,7 +50,6 @@ fi
info "程序将在 3秒 后运行... Ctrl + C 取消运行..."
sleep 2
info "开始检测运行环境..."
if [[ -z "$(which node)" ]]; then
if [[ ! -d node ]]; then
warn "未安装NodeJS 开始下载二进制包 请稍候..."
info "下载过程根据您的网络状况可能需要 1-10 分钟..."
@ -67,10 +66,6 @@ if [[ -z "$(which node)" ]]; then
read
exit 1
fi
else
NODE=node
NPM=npm
fi
echo "NodeJS 二进制版本: $(${NODE} -v)"
if [[ ! -d tera ]]; then
warn "未找到 Tera 源代码 开始Clone项目 请稍候..."