-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create-react-app issue related to [email protected] #2613
Comments
with npm@5 the output is somewhat different:
|
Have you tried with Node 7? |
It seems that version 7 isn’t supported by brew, the mac package manager that I use.
Homebrew/homebrew-core#14118 <Homebrew/homebrew-core#14118>
Do you have reason to believe that version 7 would fix the problem?
… On Jun 25, 2017, at 11:13 AM, Dan Abramov ***@***.***> wrote:
Have you tried with Node 7?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2613 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAoGahfcA2LxNZb4MlkX8VbvhBI90qBOks5sHocwgaJpZM4OEoh0>.
|
Since it used to not be a problem and Node 8 came out recently I am assuming this might be a Node 8 specific regression. |
This is a specific-to Node 8 issue and was resolved via PR #2550. Just pending release afaik, but we should probably test it actually fixes it. Basically, Node 8 builds are only available on newer versions of fsevents. |
Getting the same issue: OSWindows 10 Node Version7.2.1 NPM Version5.0.3 CMD output
|
Please downgrade to npm to npm 4 and try again:
|
I down graded to version 4 as the first step in creating this ticket. The output using npm@4 is shown below. Notice that it is somewhat different than the output for npm@5.
|
Hmm. The log says:
I wonder why, given that you say you're trying with Node 7. |
No, I am using node@8. I haven't used version 7 since it's not supported by brew, the Mac package manager. |
Ah sorry, I thought I was replying to previous poster. Yes, this error is expected with Node 8. As noted in #2613 (comment), it's a known issue we're working to fix. |
Having a similar issue.
It might be an npm problem. I was having this problem and just ran |
If I run :
and then run create-react-app errors turn into warnings, I get :
Please note that, running create-react-app with latest npm does produce the react folder structure and I can run npm start which opens the starter app in the browser correctly. Since I am new to react, I am not sure what will not work without fsevents. |
It will work fine. fsevents is only needed on macOS. Unfortunately npm produces a noisy warning, but in practice this is working as intended. |
Going to hide those nasty warnings 😛 |
Hi all, |
I'll cut a fix tomorrow. It's only in master, but not released yet. |
Fixed in 1.0.8. Please verify. |
Yep, looks much better. The output is now is given below. Thanks!!
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
***@***.*** install /Users/charlesirvine/src/react/tmp/node_modules/fsevents
node install
[fsevents] Success: "/Users/charlesirvine/src/react/tmp/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
+ [email protected]
+ [email protected]
+ [email protected]
added 1208 packages in 66.382s
Success! Created tmp at /Users/charlesirvine/src/react/tmp
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run 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 tmp
npm start
… On Jun 28, 2017, at 11:42 AM, Dan Abramov ***@***.***> wrote:
Fixed in 1.0.8. Please verify.
https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.8
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This fixes the following error on macOS with regards to and [email protected] not being found when using Node.js 8+. See issues and pull requests: facebook/create-react-app#2613 facebook/create-react-app#2550 fsevents/fsevents#170 fsevents/fsevents#169. A minimum verison of v1.0.8 is required as the PR was pushed in that release: https://github.com/facebook/create-react-app/releases/tag/v1.0.8 Considering the targeted nature of the project, I figured that upgrading to the latest (v1.1.1) would be safe.
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with npm 4.x?
Yes
Description
When running create-react-app I get:
Expected behavior
Should not get this output.
Actual behavior
Tell us what actually happens.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):node -v
:v8.1.2
npm -v
:4.6.1 - the problem also occurs with v 5.
Then, specify:
Operating system:
macOS Sierra version 10.12.5
Browser and version:
na
Reproducible Demo
Any invocation of create-react-app results in this output.
The text was updated successfully, but these errors were encountered: