20 lines
335 B
Batchfile
20 lines
335 B
Batchfile
@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
|