I'm also facing the same issue. Don't create a folder using the project name while creating Vite. Add "." in the project name, which makes all the files of npm install in that folder only.
Reasons:
Low length (0.5):
No code block (0.5):
Me too answer (2.5): I'm also facing the same issue