Skip to content

npx create-react-app fails: dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate #10534

@rjurney

Description

@rjurney

I can't create and work on a new react project. I am using node v15.8.0 installed via homebrew on OS X 10.14.6, npm 7.5.3 and XCode version 11.3.1 (11C504), which is the latest I can install.

The global modules installed are:

/usr/local/homebrew/lib
├── downloads@0.1.0
├── npm@7.5.3
├── serve@11.3.2
├── webpack-dev-server@3.11.2
├── webpack@5.21.2
└── yarn@1.22.10

I run what the directions on the new project site say, and things seem to work. Then I can't run yarn start in my project :(

npx create-react-app deep_discovery_frontend

Creating a new React app in /Users/rjurney/Dropbox/Dropbox/Software/deep_discovery_frontend.

warning ../../../../package.json: No license field
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.0
warning ../../../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 7 new dependencies.
info Direct dependencies
├─ cra-template@1.1.2
├─ react-dom@17.0.1
├─ react-scripts@4.0.2
└─ react@17.0.1
info All dependencies
├─ cra-template@1.1.2
├─ react-dev-utils@11.0.2
├─ react-dom@17.0.1
├─ react-error-overlay@6.0.9
├─ react-scripts@4.0.2
├─ react@17.0.1
└─ scheduler@0.20.1
✨  Done in 72.56s.

Initialized a git repository.

Installing template dependencies using yarnpkg...
yarn add v1.22.0
warning ../../../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > @testing-library/user-event@12.6.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 17 new dependencies.
info Direct dependencies
├─ @testing-library/jest-dom@5.11.9
├─ @testing-library/react@11.2.5
├─ @testing-library/user-event@12.6.3
├─ react-dom@17.0.1
├─ react@17.0.1
└─ web-vitals@1.1.0
info All dependencies
├─ @testing-library/dom@7.29.4
├─ @testing-library/jest-dom@5.11.9
├─ @testing-library/react@11.2.5
├─ @testing-library/user-event@12.6.3
├─ @types/aria-query@4.2.1
├─ @types/jest@26.0.20
├─ @types/testing-library__jest-dom@5.9.5
├─ css.escape@1.5.1
├─ css@3.0.0
├─ dom-accessibility-api@0.5.4
├─ lz-string@1.4.4
├─ min-indent@1.0.1
├─ react-dom@17.0.1
├─ react@17.0.1
├─ redent@3.0.0
├─ strip-indent@3.0.0
└─ web-vitals@1.1.0
✨  Done in 15.64s.
Removing template package using yarnpkg...

yarn remove v1.22.0
warning ../../../../package.json: No license field
[1/2] 🗑  Removing module cra-template...
[2/2] 🔨  Regenerating lockfile and installing missing dependencies...
warning " > @testing-library/user-event@12.6.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
success Uninstalled packages.
✨  Done in 18.68s.

Created git commit.

Success! Created deep_discovery_frontend at /foo/deep_discovery_frontend
Inside that directory, you can run several commands:

  yarn start
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd deep_discovery_frontend
  yarn start

Happy hacking!

When I change directory into deep_discovery_frontend/ and run yarn start I get errors.

 yarn start

yarn run v1.22.0
warning ../../../../package.json: No license field
$ react-scripts start
Attempting to bind to HOST environment variable: x86_64-apple-darwin13.4.0
If this was unintentional, check that you haven't mistakenly set it in your shell.
Learn more here: https://cra.link/advanced-config

dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate
  Referenced from: /Users/rjurney/Dropbox/Dropbox/Software/deep_discovery_frontend/node_modules/chokidar/node_modules/fsevents/build/Release/fse.node
  Expected in: flat namespace

dyld: Symbol not found: _FSEventStreamCreate
  Referenced from: /Users/rjurney/Dropbox/Dropbox/Software/deep_discovery_frontend/node_modules/chokidar/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions