DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

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)