First, make sure you have Three.js and vite installed by running:
# three.js
npm install --save three
# vite
npm install --save-dev viteNext, to start the web server, run:
npx viteYou should see a message like:
VITE v5.4.2 ready in 106 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
In order to see the scene, navigate to localhost:5173/ in your browser. You can do this by cmd+clicking the link in the terminal or by copying and pasting the link in your browser.