Skip to content

css.TailwindCSS fails to build when @tailwindcss/cli is installed with pnpm #14852

@blaflamme

Description

@blaflamme

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.161.1+extended+withdeploy darwin/arm64 BuildDate=2026-04-29T13:56:01Z VendorInfo=Homebrew

Does this issue reproduce with the latest release?

Yes

Problem

This issue is not present when you install @tailwindcss/cli with npm because a node script is installed under node_modules/.bin/ but pnpm instead installs a shell wrapper script, then it fails and return this error TAILWINDCSS: failed to transform "/css/main.css" (text/css): binary "tailwindcss" is not a Node.js script.

Also I've only tested this on MacOS.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions