Bug in latest release of Tailwind CSS #18807
-
What version of Tailwind CSS are you using? tailwindcss 4.1.12 What build tool (or framework if it abstracts the build tool) are you using? postcss 8.5.6, npm 11.5.2, Vite 7.1.2 What version of Node.js are you using? v22.18.0 What browser are you using? N/A What operating system are you using? Windows 11 Reproduction URL You can find a minimal reproduction of this bug at the following public GitHub repository: https://github.com/Dhanush-Annam/tailwind-bug-repo Steps to Reproduce:
Describe your issue Expected Behavior: Actual Behavior: This issue was confirmed through an extensive troubleshooting process with the following key findings: The bug has been replicated on two different Windows laptops, confirming it is not a unique machine configuration issue. Installing an older version, specifically [email protected], works correctly and the .bin executable is created as expected. Installing other packages with executables (e.g., npm install -D vite) also works correctly, which proves that the npm client and the underlying system are functioning properly. The evidence strongly suggests a bug exists in recent versions of the tailwindcss package that prevents the bin script from being properly linked during installation on Windows. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
From v4, the |
Beta Was this translation helpful? Give feedback.
-
Related: |
Beta Was this translation helpful? Give feedback.
-
Thanks @wongjn and @rozsazoltan for the clarification! 🙏 I now understand that starting with Tailwind CSS v4, the standalone CLI is no longer included in the main tailwindcss package and has been moved to @tailwindcss/cli. Since I’m using Vite, I don’t actually need the CLI — the integration works fine by following the Vite + Tailwind docs.
Everything is working now after adjusting my setup. I’ve also marked @wongjn’s reply as the answer since it directly explained the change in Tailwind v4. Thanks again for pointing me in the right direction! |
Beta Was this translation helpful? Give feedback.
From v4, the
tailwindcss
package no longer ships with an executable. The executable is now in a separate package,@tailwindcss/cli
. Since you are using Vite, you don't need the executable - see the installation documentation to integrate Tailwind CSS properly.