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! |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 91 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 |
Beta Was this translation helpful? Give feedback.
-
It is because tailwind documentation has changed, Please install tailwind with the new guidelines |
Beta Was this translation helpful? Give feedback.
-
But what happened to the tailwind.config.js? |
Beta Was this translation helpful? Give feedback.
-
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/bin now you can use tailwindcsstailwindcss --help |
Beta Was this translation helpful? Give feedback.
-
i am unable integrate the tailwind V4 by following the steps in the documentation. Here's what am getting |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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>
|
Beta Was this translation helpful? Give feedback.
-
Here's react+ts+vite+taildwind guid if someone needs |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot dude! wasted 1 hour trying to resolve the issue |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
still giving in ...thanks |
Beta Was this translation helpful? Give feedback.
-
Deprecated
|
Beta Was this translation helpful? Give feedback.
The
init
command 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: