With the release of Tailwind version 4 [↗], came with it some changes. One that can lead to the error below when you run npx tailwindcss
:
01: npm error could not determine executable to run
02: npm error A complete log of this run can be found in: /home/<user_name>/.npm/_logs/2025-10-09T12_36_15_002Z-debug-0.log
This error is due to the fact that installing tailwindcss the old way i.e `npm install tailwindcss
only pulls in the code but not the Tailwind CLI.
You need to install that too, altogether, you now have:
$ npm install tailwindcss @tailwindcss/cli
Or, alternatively you can specify an older version of Tailwind to install:
$ npm install tailwindcss@3
Here is another article you might like 😊 Give Your Website A Retro Look