Expose Node to npm lifecycle scripts

This commit is contained in:
王鹏
2026-10-09 13:03:55 +08:00
parent a94193d684
commit e5e584eb73
3 changed files with 21 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ AutoDeploy 是一个面向 Windows 的 Spring Boot / SSM + Vue 本地自动化
- 服务启动前检查端口占用并终止旧进程,等待新服务端口就绪后再继续。
- 后端在独立控制台中显示实时输出,各服务同时保留运行日志。
- Maven、npm 等命令输出会自动识别 UTF-8 和 Windows 中文编码,避免日志解码导致部署任务提前中断。
- 使用手动指定或工具自动安装的 npm 时,会把其 Node.js 目录加入部署子进程的 `PATH`,保证依赖安装脚本可以调用 `node`。
## 运行环境