compatibility note
Vite requires Node.js version 14.18+, 16+. However, some templates require a higher version of Node to run properly. When your package manager warns you, please upgrade your version of Node.
Using NPM:
$ npm create vite@latest
The steps are as follows: give your project a name, select the framework and language
cd into the project we created, install the dependencies, and start it.
C:\Users\Star\Desktop\Route grabbing>npm create vite@latest
Need to install the following packages:
[email protected]
Ok to proceed? (y)
√ Project name: ... Route grabbing
√ Package name: ... route-grabbing
√ Select a framework: » Vue
√ Select a variant: » JavaScript
Scaffolding project in C:\Users\Star\Desktop\Route grabbing\Route grabbing...
Done. Now run:
cd "Route grabbing"
npm install
npm run dev
C:\Users\Star\Desktop\Route grabbing> cd "Route grabbing"
C:\Users\Star\Desktop\Route grabbing\Route grabbing> npm install
added 25 packages in 39s
2 packages are looking for funding
run `npm fund` for details
C:\Users\Star\Desktop\Route grabbing\Route grabbing> npm run dev
> [email protected] dev
> vite
VITE v4.3.9 ready in 700 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Refer to the official website of Vite: Start | Vite Official Chinese Documentation