Error: "npx tailwindcss init -p" results in "could not determine executable to run" error #18008
-
Hi, I’m facing an issue while trying to set up Tailwind CSS in my project using the following command: npm error could not determine executable to run The error occurs instead of the expected config files being generated how to fix this can anyone help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The If you are trying to use v3, ensure the version qualifier is used: $ npm install -D tailwindcss@3 postcss autoprefixer
$ npx tailwindcss init -p |
Beta Was this translation helpful? Give feedback.
The
init
command no longer exists in the most recent major version of Tailwind. Consider checking the installation documentation that is most relevant to your project to integrate Tailwind CSS properly.If you are trying to use v3, ensure the version qualifier is used: