-5

Whenever i am executing the command: npx tailwindcss init -p I am getting the following error:

npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\SREEJA\AppData\Local\npm-cache\_logs\2025-01-26T08_48_40_639Z-debug-0.log

I have checked with the version of node and npm and have also reinstalled them but the issue is not resolved.

2
  • What's your node version? What's your tailwind version? Are there any relevant messages in the log file that is mentioned in the error message? Commented Jan 26 at 14:17
  • 1
    version is : v22.13.1 Commented Jan 26 at 14:54

1 Answer 1

0

init command no longer works in Tailwind CSS v4. Downgrade to version 3.14.17, and then try again. It worked for me.

`

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, this worked because the init process still existed in v3. From v4 onwards, it is considered a deprecated process. Read more here: Problem installing TailwindCSS after "npx tailwindcss init -p" command - But downgrading is never a great solution. Let’s understand the reasons behind the issue and use the latest supported versions.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.