Unable to Run npx tailwindcss init -p - "Could Not Determine Executable to Run" #15820
|
I am encountering an error while trying to initialize a Tailwind CSS configuration in my project using the command:
The error message I get is: What I've Tried: This was successful, and I verified that they were added to devDependencies in my package.json. Looked in the .bin directory under node_modules but couldn't find the tailwindcss executable. Any suggestions or insights into resolving this issue would be greatly appreciated. Thank you! |
Replies: 17 comments 171 replies
|
The If you are trying to use v3, ensure the version qualifier is used: $ npm install -D tailwindcss@3 postcss autoprefixer
$ npx tailwindcss init -p |
|
It is because tailwind documentation has changed, Please install tailwind with the new guidelines |
|
But what happened to the tailwind.config.js? |
|
for anyone trying to use tailwindcss outside a npm project, you can install globally with: how to install and configure tailwindCSS executable?# download tailwind binary and move to "~/.tailwindcss/bin"
mkdir ~/.tailwindcss; cd ~/.tailwindcss/
mkdir bin; cd bin
# this works for arm64, check docs for other arch
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss
# tailwindcss
export PATH=$PATH:~/.tailwindcss/binnow you can use tailwindcsstailwindcss --help |
|
What Thank you so much for your helpful answer! It saved me a lot of time and pointed me in the right direction. I was unaware that the init command no longer exists in Tailwind v4, and your advice to use the version qualifier for v3 was exactly what I needed. I really appreciate your clear explanation and the time you took to provide this solution. Thanks again! |
|
Welcome vedika, are you a frontend developer ??
…On Wed, 12 Feb, 2025, 11:40 pm VedikaGaikwad2004, ***@***.***> wrote:
thany you
—
Reply to this email directly, view it on GitHub
<#15820 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMBQB2H5J5TMXPLIQQ3F6GT2POE77AVCNFSM6AAAAABV2B6WFCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJXHAYDINQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
|
Here's react+ts+vite+taildwind guid if someone needs |
|
Thanks a lot dude! wasted 1 hour trying to resolve the issue |
|
Steps are still present in the Jetbrains docs https://www.jetbrains.com/help/phpstorm/tailwind-css.html#ws_css_tailwind_install If you see this, update your IDE to one with 2024.3.2 (released this year) with the change from https://youtrack.jetbrains.com/issue/WEB-70442/Support-Tailwind-CSS-4 You should NOT need to run this command anymore, and get the |
|
still giving in ...thanks |
Deprecated
|
|
I'm encountering some difficulties with the new installation flow. In the previous version, everything was more straightforward and easy to configure... The doc should be more clear I found out about this change from this stack overflow post: https://stackoverflow.com/questions/79380514/problem-installing-tailwindcss-with-vite-after-npx-tailwindcss-init-p-comman/79380522#79380522 My question is: Is there a problem with the npm package? Coz I also got the same error like most people here... I think it can be improved, many people got issues, it shouldn't be that complicated or maybe because we're so used to the way it was... |
|
Thanks , Great Knowledge transfer |





The
initcommand no longer exists in v4. Consider checking the installation documentation that is most relevant to your project to integrate Tailwind v4.If you are trying to use v3, ensure the version qualifier is used: