Closed sekoyo closed 4 years ago
some people on the reactiflux Discord channel are recommending downgrading to Node 11 until the issue is mitigated.
This worked for me:
npm audit fix --force
thanks mate. this worked for me
You need to install the yarn before creating your app
sudo npm i -g yarn npx create-react-app my-app cd my-app npm start
It have worked for me. ;)
This indeed works. I struggle making my first react app to work at first, but eventually installing yarn (and use it after that) make it work, it really do the trick ✨
I no longer get this issue, tested with Node 12.7 and 12.9 using either NPM or Yarn. Thinking of closing this soon as it seems to have been resolved.
rm -rf node_modules rm -f yarn.lock yarn
Solve the issue
This worked for me. I had Node version: 12.8.0 on a mac
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes, tried clean install use Node v12 and NPM 6.9.0
Which terms did you search for in User Guide?
Anything about fsevents errors.
Environment
System: OS: macOS 10.14.4 CPU: x64 Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz Binaries: Node: 12.0.0 - /usr/local/bin/node Yarn: 1.15.2 - ~/.npm-global/bin/yarn npm: 6.9.0 - ~/.npm-global/bin/npm Browsers: Chrome: 73.0.3683.103 Safari: 12.1 npmPackages: react: ^16.8.6 => 16.8.6 react-dom: ^16.8.6 => 16.8.6 react-scripts: 3.0.0 => 3.0.0 npmGlobalPackages: create-react-app: 2.1.8
Don't know why it says create-react-app: 2.1.8, if I do
npm show create-react-app version
it echos3.0.0
.Steps to Reproduce
Install with NPM 6.9.0
Expected Behavior
npm start
starts the serverActual Behavior
fsevents throws:
Because even though chockidar depends on fsevents
1.2.8
, it doesn't get installed, possibly due to chockidar declaring it as an optional dependency: https://github.com/paulmillr/chokidar/blob/master/package.json#L24Instead fsevents v2 gets installed which has a different API which exports a plain object (new keyword breaks on it).
⚠️ Works using yarn. (and older NPM versions as it worked on Node v11 I was using yesterday)
Reproducible Demo
Do
create-create-app
using NPM 6.9.0 and try to run it.