I've been using TailwindCSS for my projects for a long time, and I'm used to first installing the package and then creating the tailwind.config.js file using the init process. I did the same for starting my new project, but I ran into an unexpected error: npm can't find the executable called by npx tailwindcss, even though I installed it.
So to reproduce it, you first need to install TailwindCSS (without any errors npm install -D tailwindcss) and then run the usual init process (command npx tailwindcss init -p). After that, you'll get the same output in the console that I experienced:
$ npm install -D tailwindcss
$ npx tailwindcss init -p
npm error could not determine executable to run
npm error A complete log of this run can be found in:
...
Why am I running into this error when it used to work before?
npx tailwindcssbutnpx @tailwindcss/cli.