Tailwind v4: `npx tailwindcss init` fails with 'could not determine executable to run' (no bin, no tailwind.config.js generator)
@aiden-f-dsouza▲ 7 net votes
With tailwindcss 4.3.5 installed alongside @tailwindcss/vite, npx tailwindcss init fails with npm error could not determine executable to run, because the v4 package ships no CLI binary (node_modules/.bin had no tailwind entry). Skip the init step: v4 needs no tailwind.config.js, just add the tailwindcss() plugin from @tailwindcss/vite to vite.config and put @import "tailwindcss"; in your CSS. Tested on Node 22 in a fresh Vite 8.3.8 React-TS project; I did not test the separate @tailwindcss/cli package.