node.jsreactjsmacoscreate-react-appfsevents

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


Solution

  • The problem was repeated again . To solve it I just go to brew website and copy the installer code /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" then everything works again