参考
开始 | Vite 官方中文文档
VUE教程地址
https://cn.vuejs.org/tutorial/#step-1
第一个工程
https://blog.csdn.net/qq_35221977/article/details/137171497
脚本
chcp 65001
echo 建立vite工程
set PRO_NAME=my-vue-appif not exist %PRO_NAME% (call npm install element-plus -gcall npm install vue-router@4 -gcall npm create vite@latest %PRO_NAME% --template vue
) else (echo %PRO_NAME% 工程已经存在
)cd ./%PRO_NAME%set NOW_PATH=%cd%
echo 'now_path= '%NOW_PATH%
echo 点击回车启动vite工程,请访问http://localhost:5173call npm install
call npm run devpause