Next.js Discord

Discord Forum

Cannot install tailwind.css

Answered
American posted this in #help-forum
Open in Discord
AmericanOP
I only got into Next.js recently and I have been trying to install tailwind in my environment.

I did the usual

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

But then I got

npm error could not determine executable to run

Which baffled me. I uninstalled and reinstalled, cleared the entire node_modules folder and package_lock.json many times. I tried basically every fix on the internet but nope! I either got permissions denied or my initial error.

I checked and noticed that in .bin, the tailwindcss file was completely missing. I tried creating it but it said "Unable to create [file] that already exists when overwrite flag is not set."

Then I realized my tailwind installations have no /bin folder at all. What's wrong and how should I fix it?
Answered by Anay-208 | Ping in replies
can you try reinstalling npm?
View full answer

7 Replies