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: 4 comments 20 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.
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: