Issue with Tailwindcss intallation: “npx tailwindcss init”

npx tailwindcss init

npx: installed 1 in 1.127s
command not found: tailwindcss

I did try another command npx tailwindcss-cli@latest init -p and created tailwind.config.js folder.

But I do want to know why the npx tailwind init: not working.

Tried ChatGPT and possible solution that I could get my hand on still the problem persists.