You no longer need to do npx tailwindcss init -p
according to tailwindcss v4 docs. Link: how to config it with vite
If you still wanna use npx tailwindcss init -p
then you have to install v3 by using npm install -D tailwind@3
, then you can proceed with npx tailwindcss init -p
. Link: tailwindcss v3 docs installation guide