'No valid exports main found on npm (tailwind css)

enter image description herei am learning tailwind css and in tutorial they write a command like this npx tailwindcss-cli build css/tailwind.css -o build/tailwind.css and it build a different folder name "tailwind.css" in same directory but in my case it gives a error

No valid exports main found for 'C:\Users\HHH\AppData\Roaming\npm-cache\_npx\4952\node_modules\tailwindcss-cli\node_modules\postcss'

I don't have any idea what it means and whats wrong with the setup. please help.



Solution 1:[1]

I find the solution. Just install the current node.js and reinstall the specific version. download here

After that install it and everything works fine. Note: It works in when you follow the tailwindcss cli method. follow first part of video

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ankitkaushiks