Files
nxxmdata/government-mini-program/start-dev.sh

26 lines
460 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "启动政府端小程序开发环境..."
echo
echo "检查Node.js环境..."
node --version
if [ $? -ne 0 ]; then
echo "错误: 未找到Node.js请先安装Node.js 16.20.2+"
exit 1
fi
echo
echo "安装依赖包..."
npm install
if [ $? -ne 0 ]; then
echo "错误: 依赖安装失败"
exit 1
fi
echo
echo "启动开发服务器..."
echo "请确保后端服务已启动在 http://localhost:5352"
echo
npm run dev:mp-weixin