Umer Farooq
Umer Farooq

Reputation: 1

while installing tailwind Css i am having this error 'npm error could not determine executable to run'

i am trying to install the tailwind in react project but while creating tailwind.config file i am having this issue. this is the error i am facing

npx tailwindcss init -p
npm error could not determine executable to run
npm error A complete log of this run can be found in:
C:\Users\PMLS\AppData\Local\npm-cache\_logs\2025-03-06T15_42_53_449Z-debug-0.log

I have cleared the cache and deleted the node_module folder and npm install too. I have installed the latest version of nodeJS, too, but it still doesn't work.

Upvotes: 0

Views: 59

Answers (1)

Soob
Soob

Reputation: 21

Maybe you are using v4 of Tailwind, which does not use init, but this instead:

npm install tailwindcss @tailwindcss/vite

https://tailwindcss.com/docs/installation/using-vite

Version 3.4 uses this:

npm install -D tailwindcss@3
npx tailwindcss init

https://v3.tailwindcss.com/docs/installation

Upvotes: 2

Related Questions