When I encountered an error while initializing a Tailwind CSS configuration for my project,
command:
npm install tailwindcss @tailwindcss/postcss postcss
npx tailwindcss init -p
error:
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in: C:\Users\raoma\AppData\Local\npm-cache\_logs\2025-03-05T15_53_22_652Z-debug-0.log
solution: what I've tried
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p
The init command is no longer available in Tailwind CSS v4. For v3, make sure to use the correct version qualifier during installation.
If you want to use Tailwindcss v4 use this:
https://tailwindcss.com/blog/tailwindcss-v4#css-first-configuration
Top comments (0)