Skip to content

Tailwind CSS v4.x (@tailwindcss/oxide) native binary not installing on WSL2 / Win 11 Pro, postinstall script reports success but file is missing. #18427

Answered by LarsOFinke
LarsOFinke asked this question in Help
Discussion options

You must be logged in to vote

Ok, seems like most of it is sorted out now.

After struggling again for hours, I have definetly learned a ton about the new environment.
Finally, ChatGPT o4-mini-high was able to resolve all dependency-installation issues that were caused by recent refactorings etc.

His answer is:
**
Tailwind v4 split out its CLI
In v3 the tailwindcss package shipped both the PostCSS plugin and the tailwindcss binary (so npx tailwindcss init worked).
In v4 the binary lives in a separate package, @tailwindcss/cli, and the PostCSS integration was pulled into @tailwindcss/postcss.
Fix: install both packages (npm install -D @tailwindcss/cli @tailwindcss/postcss) and then run the init via the new CLI (or scaff…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thecrypticace
Comment options

Answer selected by LarsOFinke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18417 on July 01, 2025 18:30.