From 0aea905dda6d51dc343eab0fecb71bf23155d7a4 Mon Sep 17 00:00:00 2001 From: lieil <313735723@qq.com> Date: Tue, 3 Apr 2018 09:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E9=94=AE=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=83=A8=E7=BD=B2=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 安装阿里cnpm镜像工具、确保首次编译node项目依赖环境 --- deploy/util/lazy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/util/lazy.sh b/deploy/util/lazy.sh index 6459889a..9581c610 100644 --- a/deploy/util/lazy.sh +++ b/deploy/util/lazy.sh @@ -13,8 +13,12 @@ mvn clean mvn package cd ./litemall-admin +# 安装阿里node镜像工具 +npm install -g cnpm --registry=https://registry.npm.taobao.org +# 安装node项目依赖环境 +cnpm install cnpm run build:prod cd .. echo $PWD -./deploy/util/upload.sh \ No newline at end of file +./deploy/util/upload.sh