How to fix 'Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
ADEKOLA Abdwahab
Posted on March 16, 2023
To resolve this issue, you can make your build command to be:
`yarn set config ignore-engines true`
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": "*"
}
Did you resolve this issue with a different method, what's the method - share with us.
Connect with me on Twitter @wahabind
💖 💪 🙅 🚩
ADEKOLA Abdwahab
Posted on March 16, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.