#! /bin/sh # 需要加入 . ~/.profile SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install --registry=http://npm.xiaopeng.local:7001 export CICD_STATIC_PATH=$(echo $CICD_STATIC_PATH) && npm run build if [ $? != 0 ];then echo "build error" exit 1 fi