Problem with fsevents dependency while trying to install tailwindcss on linux

600 Views Asked by At

I'm trying to install tailwindcss in my Vue Js project using the following command:

npm install -D tailwindcss@latest

But I get this error:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  undefined
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

There is a related topic here where the proposed solution is to set fsevents as devDependencies but it is not possible in this particular case.

2

There are 2 best solutions below

0
Saba On

I had the same problem while installing tailwind in my reactjs application. I could resolve the error by npm install -D -f tailwindcss@latest.

0
Bernard Sibanda On

npm install -D -f tailwindcss@latest this forced the installation