Files
gold-price-watcher/启动.bat
T

20 lines
335 B
Batchfile
Raw Normal View History

2026-11-24 16:37:13 +08:00
@echo off
chcp 65001 >nul
cd /d "%~dp0"
title 金价提醒
if not exist node_modules (
echo 首次运行,正在安装依赖...
call npm install --no-audit --no-fund
if errorlevel 1 (
echo 依赖安装失败,请检查网络后重试。
pause
exit /b 1
)
)
node src\index.js
echo.
echo 程序已退出。
pause