Failed deployment

Jan 26 01:59:23 PM npm ERR! code EBADPLATFORM
Jan 26 01:59:23 PM npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
Jan 26 01:59:23 PM npm ERR! notsup Valid OS: darwin
Jan 26 01:59:23 PM npm ERR! notsup Valid Arch: any
Jan 26 01:59:23 PM npm ERR! notsup Actual OS: linux
Jan 26 01:59:23 PM npm ERR! notsup Actual Arch: x64
Jan 26 01:59:23 PM
Jan 26 01:59:23 PM npm ERR! A complete log of this run can be found in:
Jan 26 01:59:23 PM npm ERR! /opt/render/.cache/_logs/2023-01-26T08_29_23_118Z-debug.log
Jan 26 01:59:23 PM npm ERR! code ELIFECYCLE
Jan 26 01:59:23 PM npm ERR! errno 1
Jan 26 01:59:23 PM npm ERR! amazona@1.0.0 build: cd backend && npm install && cd ../frontend && npm install && npm run build
Jan 26 01:59:23 PM npm ERR! Exit status 1
Jan 26 01:59:23 PM npm ERR!
Jan 26 01:59:23 PM npm ERR! Failed at the amazona@1.0.0 build script.
Jan 26 01:59:23 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 26 01:59:23 PM
Jan 26 01:59:23 PM npm ERR! A complete log of this run can be found in:
Jan 26 01:59:23 PM npm ERR! /opt/render/.cache/_logs/2023-01-26T08_29_23_140Z-debug.log
Jan 26 01:59:23 PM ==> Build failed :disappointed:
Jan 26 01:59:23 PM ==> Generating container image from build. This may take a few minutes…

I am trying to publish a mern stack website named amazona by following a youtube tutuorial frim CodingwithBasir. he has deployed the website in heroku, but since render is free I tried the same steps as him, but I am getting this error. Please help me to solve this.

Hey,

Thanks for reaching out!

The “fsevents” library you’re using (https://www.npmjs.com/package/fsevents) is made to be deployed on MacOS systems only. Render provide Linux servers only for your web services.

This SO topic may help you get around this limitation: https://stackoverflow.com/questions/56103865/how-to-fix-unsupported-platform-for-fsevents1-2-9-wanted-osdarwin-arch

Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.