DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

1

How to fix 'Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

To resolve this issue, you can make your build command to be:

`yarn set config ignore-engines true`
Enter fullscreen mode Exit fullscreen mode

This is if it is the YARN package manager that you are using.

If you had started the project with either NPM or YARN, it is not advisable to switch or mix these commands has they will corrupt your package-lock.json and your project may not start until you delete this file.

For NPM; make the following settings in your package.json file, has the error is from the fsevents module that is only available on Mac OS:

"optionalDependencies": {
    "fsevents": "*"
  }
Enter fullscreen mode Exit fullscreen mode

Did you resolve this issue with a different method, what's the method - share with us.

Connect with me on Twitter @wahabind

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay