A instalação do NPM funciona apenas em globalmente
Try making a new project:
npm install -g vite
npm create vite@latest
npm install packageName
Said HR
Try making a new project:
npm install -g vite
npm create vite@latest
npm install packageName