Reputation: 11
My questions are: Is there a way to bypass this error and make pnpm dlx work with TailwindCSS? If not, how can I manually locate the necessary binaries to run TailwindCSS?
I'm using pnpm v10.5.2 and TailwindCSS v4.0 Any help would be appreciated!
I'm trying to run TailwindCSS using pnpm dlx, but I keep getting this error: ERR_PNPM_DLX_NO_BIN No binaries found in tailwindcss. The command I used: pnpm dlx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
From my understanding, pnpm dlx runs binaries from the package, but it seems like TailwindCSS doesn't expose any.
Upvotes: 1
Views: 22
Reputation: 24556
The CLI interface for Tailwind CSS is in a different package, @tailwindcss/cli
. Thus, your command should look like:
pnpm dlx @tailwindcss/cli -i ./src/input.css -o ./dist/output.css --watch
Upvotes: 2