The installation of TailwindCSS v3 and v4 is different. You were expecting the v3 installation, but v4 is the new latest version. For v3 installation, use:
npm install -D tailwindcss@3
However, if you want to install v4, I recommend reviewing the installation guides, as there are significant breaking changes between v3 and v4.
npm install tailwindcss @tailwindcss/vite
@tailwind
directivesinit
process