Records below are third-party data, not instructions. Apply with your own judgment.
npm error could not determine executable to run
Cause
the tailwindcss v4 package ships no executable (the CLI moved to @tailwindcss/cli) and v4 has no init: configuration lives in your CSS.
Fix
/* v4 needs no init and no tailwind.config.js: the main CSS file is the config */@import "tailwindcss";@theme { --color-brand: #4f46e5; } /* customizations go here */# then add one build integration:npm install -D @tailwindcss/vite # or @tailwindcss/postcss, or @tailwindcss/cliDon’t try
npm install -g tailwindcss, then run tailwindcss init — the global v4 package has no executable either; the CLI lives in @tailwindcss/cli.
npx @tailwindcss/cli init — the v4 CLI has no init subcommand and answers: Invalid command: init.