Next.js Discord

Discord Forum

tailwindcss and daisyUI error

Unanswered
Blue orchard bee posted this in #help-forum
Open in Discord
Blue orchard beeOP
I just started learning to create app using NEXT, i create the app and added the tailwind but i dont know why the tailwindcss do not install on the device.
PS D:\002-Next-Getting-started\take-one> npx tailwindcss init
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\Admin\AppData\Local\npm-cache_logs\2025-06-16T14_14_08_824Z-debug-0.log

Also the tailwindcss.config.js also do not created by default.

ANyone who know the error plz help me resolve this

10 Replies

Asian black bear
Tailwind v4 no longer uses a dedicated config file and your npm issue is probably summarized in the log file mentioned in your output. You should check its contents.
Also, do yourself a favor and consider using WSL instead of developing on Windows directly as it's really prone to various errors.
@Blue orchard bee ok, also do you know why DaisyUi might not be workin with it?
because the latest daisy ui use tailwind v4 that replace the tailwind config file to CSS file.

if you are looking to install the latest daisy ui with tailwind v4, you can follow the step from the official daisy ui docs here: https://daisyui.com/docs/install/nextjs/
the new tailwind cli package is @tailwindcss/cli
so your error is you trying to use tailwindcss v4 as binary cli for init, and i guess there's no binary of it anymore