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

ADEKOLA Abdwahab @codarbind

About: Coding solutions one semicolon at a time. @wahabind tweets

Location:
Nigeria
Joined:
Apr 10, 2021

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

Publish Date: Mar 16 '23
1 0

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

Comments 0 total

    Add comment