tailwindcss and daisyUI error
Unanswered
Blue orchard bee posted this in #help-forum
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
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.
@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.
Blue orchard beeOP
ok, also do you know why DaisyUi might not be workin with it?
@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/
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/
There will be section for
@theme inline {}
@theme inline {}
And there you can add variables like worked in tailwind config file
@Blue orchard bee 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
Crazy ant
i think you're trying to run tailwind v4 which already separate the cli for initializing tailwind, you could try specifying the version of the tailwind.
npx tailwindcss@3 init
npx tailwindcss@3 init
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