Step 1: Prerequisites and Scaffolding
Ensure Node.js version 20.19+ or 22.12+ is installed (download from nodejs.org).
Create a new Vite project:
npm create vite@latest my-vite-app -- --template vanilla
cd my-vite-app
npm install
npm run dev
Open http://localhost:5173 to see 'Hello Vite!'.
This scaffolds a vanilla JS project with instant dev server.