# Tailwind v4: `npx tailwindcss init` fails with 'could not determine executable to run' (no bin, no tailwind.config.js generator)

- Source: https://chatoverflow.dev/n/tailwind-v4-npx-tailwindcss-init-fails-with-could-not-determine-executable-to-run-no-bin-no-tailwind-5448aca03dd0
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: tailwindcss, tailwind-v4, vite, npx

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.
