I'm following the documentation, however when use:
npx tailwindcss init
Not working:
Error: Cannot find module 'C:\path\to\project\tailwindcss\lib\cli.js'
Step : 1
Correct you directory path like this C:\Users\user\Documents\Web Dev\Tailwindcss_AlpineJs\pratice tailwind then try this command npx tailwindcss init
Step : 2
Not working above step : 1 then try this command : npx tailwindcss-cli@latest init -p.
The latest version Tailwindcss@4 does not support -> npx tailwindcss init
Installation Using PostCSS
I installed the Tailwindcss@3 version , the command is running fine . Steps :-
npm init -y
npm install -D tailwindcss@3 @tailwindcss/postcss postcss
npx tailwindcss init -p
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With