Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reactjs development server won't start on macos catalina

I am trying to create a new react.js project with create-react-app. When I execute yarn start, the development server doesn't start and the console gives me this message :

Starting the development server...

dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate
  Referenced from: /Users/username/project/node_modules/fsevents/build/Release/fse.node
  Expected in: flat namespace

dyld: Symbol not found: _FSEventStreamCreate
  Referenced from: /Users/username/project/node_modules/fsevents/build/Release/fse.node
  Expected in: flat namespace

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

That happens with the newly created react.js project, not with the older ones. I install and reinstall node.js with brew install node, I also reinstall create-react-app, but nothing happens.

Information about my environment :

  1. OS: macOS Catalina , version 10.15.4 (19E266)
  2. Node : v13.11.0
  3. create-react-app : version 3.4.1
  4. yarn : version 1.22.4
  5. npm : version 6.13.7

Thanks in advance for a perfect answer

like image 931
thecassion Avatar asked Feb 20 '26 14:02

thecassion


1 Answers

Deleting the fsevents folder/folders inside. 'node_modules' worked for me on MacOS Mojave. If after deleting one fsevent directory , it still fails , then delete the fsevents folder in the current path shown in the error.

like image 131
fah Avatar answered Feb 23 '26 06:02

fah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!