I'm trying to set up Tailwind CSS in a React project using Vite. Here's what I did:
Installed the required dependencies: npm install -D tailwindcss postcss autoprefixer vite
Attempted to initialize Tailwind CSS with: npx tailwindcss init -p
However, I encountered the following error: npm error: could not determine executable to run
Here’s a screenshot of the issue: error image
I'm using: Windows 11 Node.js version: v22.13.1 npm version: 10.9.2
I expected the command to generate the tailwind.config.js and postcss.config.js files but instead received this error. How can I resolve this and proceed with my setup?