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.
What version of Hugo are you using (
hugo version)?Does this issue reproduce with the latest release?
Yes
Problem
This issue is not present when you install
@tailwindcss/cliwithnpmbecause a node script is installed undernode_modules/.bin/butpnpminstead installs a shell wrapper script, then it fails and return this errorTAILWINDCSS: failed to transform "/css/main.css" (text/css): binary "tailwindcss" is not a Node.js script.Also I've only tested this on MacOS.