Issue with Tailwind CSS Installation (Version 4.1.11) — Resolved with Version 3.4.1 #18416
Unanswered
prabhatyadav4
asked this question in
Help
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
v4.1.11 missing CLI binary —
npx tailwindcss init
fails with "could not determine executable to run"What version of Tailwind CSS are you using?
v4.1.11
What build tool (or framework if it abstracts the build tool) are you using?
None – standard npm setup, no additional frameworks or build tools. CLI used manually.
What version of Node.js are you using?
v22.15.0
What browser are you using?
N/A – CLI issue, browser not involved.
What operating system are you using?
Windows 11 (Build 26100)
Describe your issue
Hello Tailwind team,
I’m encountering an issue with Tailwind CSS version
v4.1.11
that prevents usage of the CLI vianpx
. After installing this version in a new project using:… I attempted to run the following:
However, this consistently fails with the error:
Investigation Findings:
The
tailwindcss
binary is missing from thenode_modules/.bin
directory.Running
npm view [email protected] bin
returns an empty result, indicating that the published package may be missing thebin
field in itspackage.json
.This behavior is not present in
v3.4.1
. After downgrading with:… the CLI binary is correctly registered, and the following works:
Summary:
It appears that version
v4.1.11
of Tailwind CSS was published without the CLI binary entry, which breaks usage vianpx
,npm exec
, or any other CLI-based workflows. This may have been an unintentional omission during publishing.Please let me know if this was an intentional change or a packaging mistake. If needed, I’m happy to share logs, reproduce this issue further, or help test fixes.
Thanks for your time and continued work on Tailwind!
Best regards,
Prabhat
Beta Was this translation helpful? Give feedback.
All reactions