Fix fsevents doesn’t install on linux

While working on React Native Project, I faced some strange error that a particular package called fsevents can’t be installed on Linux. Here is the Screenshot of that.

For a while, I’m confused and what to do. I planned to ignore the package and I thought it may solve the issue.

So, I quickly opened the Terminal of Project folder and run these commands.
rm -rf node_modules package-lock.json yarn.lock

Then run.

yarn install --no-optional

Viola !! As I expected this is an Optional Package and it got excluded from the installation.

Leave a Comment