Use Vite to build basic projects

First open the cmd window or the vscode development tool

Use yarn global add  [email protected]  or npm i -g [email protected] in the terminal

I use the yarn command here, as follows

Then it will prompt create-vite-app or cva

Run create-vite-app + your project name or cva + your project name 

At this point the project has been created, use yarn + yarn dev or npm i + npm run dev to start the project

 At this point the creation of the project is complete

Guess you like

Origin blog.csdn.net/weixin_42804664/article/details/125298669