tailwindcss.cmd missing from node_modules/.bin for v4.1.11 on Windows with npm exec #18464
Unanswered
ashannavarathna
asked this question in
Help
Replies: 1 comment 1 reply
-
Tailwind CSS v4 doesn't use a tailwind.config.js file anymore, and therefore also doesn't ship an init command. Pick your setup of choice and follow the instructions here: https://tailwindcss.com/docs/installation |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Title: tailwindcss.cmd missing from node_modules/.bin for v4.1.11 on Windows with npm exec
Body:
Bug Report: tailwindcss.cmd missing for v4.1.11, preventing npm exec on Windows
Environment:
Description:
When attempting to install tailwindcss@4.1.11 and then use npm exec tailwindcss init -p to initialize the configuration, the tailwindcss.cmd executable file is not created within the node_modules.bin\ directory. This leads to the "could not determine executable to run" error.
Steps to Reproduce:
"devDependencies": {
"tailwindcss": "^4.1.11"
}
Install project dependencies:
Bash
npm install
(No errors or critical warnings were observed during npm install.)
Verify executable presence:
Attempt to initialize Tailwind CSS:
Bash
Expected Behavior:
The tailwindcss.cmd executable should be created in node_modules.bin, and the npm exec tailwindcss init -p command should successfully run, creating tailwind.config.js and postcss.config.js in the project root.
Actual Behavior:
The tailwindcss.cmd executable is not created. The npm exec tailwindcss init -p command fails with the following error:
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\anonymous\AppData\Local\npm-cache_logs\2025-07-06T12_55_40_156Z-debug-0.log
(Note: The specific log file name will vary, but the error message is consistent.)
Workaround/Resolution (for now):
Downgrading to a stable v3 version of Tailwind CSS resolves the issue. When npm install tailwindcss@3.4.4 --save-dev is used, the tailwindcss.cmd file is successfully created in node_modules.bin, and subsequent npm exec tailwindcss init -p (or npm run tailwind-init via a script) commands work as expected.
This suggests an issue specific to how tailwindcss@4.1.11 (or perhaps the v4 alpha/beta series) integrates with npm on Windows for binary creation.
Beta Was this translation helpful? Give feedback.
All reactions