You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
638 B

@echo off
chcp 65001 >nul
echo 测试 npm 路径修复...
echo.
REM 检查当前目录
echo 当前目录: %CD%
echo.
REM 检查构建文件是否存在
if exist "dist\renderer\index.html" (
echo ✅ 构建文件存在: dist\renderer\index.html
) else (
echo ❌ 构建文件不存在: dist\renderer\index.html
)
echo.
echo 测试 npm 命令...
npm --version
if errorlevel 1 (
echo ❌ npm 命令失败
) else (
echo ✅ npm 命令正常
)
echo.
echo 测试构建命令...
npm run build:vue
if errorlevel 1 (
echo ❌ 构建命令失败
) else (
echo ✅ 构建命令成功
)
echo.
echo 测试完成!
pause