Failed Deployment to render on windows 11

I want to deploy a mern app to render but I’ve been getting this error response. I’m using windows 11.
It’s over two weeks now, I’m totally frustrated and fedup
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64


The package you’re using in your project: fsevents [] is tailored for MacOS and won’t work on Render as we use Linux machines to deploy your service.

Render Support, UTC+3

What can I do?
Is there any solution?

You would need to use a Linux alternative like inotifywait and then create a child_process in Node to replicate the same behavior:

const { spawn } = require('child_process');
const watcher = spawn('inotifywait', ['-r', '-m', '/path/to/directory']);

watcher.stdout.on('data', (data) => {
  console.log(`stdout: ${data}`);

watcher.stderr.on('data', (data) => {
  console.error(`stderr: ${data}`);

watcher.on('close', (code) => {
  console.log(`child process exited with code ${code}`);

That’s my best guess, you may be able to find other alternatives.

Render Support, UTC+3

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