?
參考
開始 | 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
?