Skip to content
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 fsevents@1.0.17 #2613

Closed
CharlesIrvineKC opened this issue Jun 25, 2017 · 20 comments
Closed

create-react-app issue related to fsevents@1.0.17 #2613

CharlesIrvineKC opened this issue Jun 25, 2017 · 20 comments
Milestone

Comments

@CharlesIrvineKC
Copy link

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:

Creating a new React app in /Users/charlesirvine/tmp/slate-editor.

Installing packages. This might take a couple minutes.
Installing react-scripts...


> fsevents@1.0.17 install /Users/charlesirvine/tmp/slate-editor/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp) 
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  COPY /Users/charlesirvine/tmp/slate-editor/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp

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:

  1. npm ls react-scripts (if you haven’t ejected):
~/tmp $ npm ls react-scripts
/Users/charlesirvine
└── (empty)
  1. node -v:
    v8.1.2

  2. npm -v:
    4.6.1 - the problem also occurs with v 5.
    Then, specify:

  3. Operating system:
    macOS Sierra version 10.12.5

  4. Browser and version:
    na

Reproducible Demo

Any invocation of create-react-app results in this output.

@CharlesIrvineKC
Copy link
Author

with npm@5 the output is somewhat different:

Installing packages. This might take a couple minutes.
Installing react-scripts...


> fsevents@1.0.17 install /Users/charlesirvine/tmp/slate-editor/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/Cellar/node/8.1.2/bin/node',
node-pre-gyp verb cli   '/Users/charlesirvine/tmp/slate-editor/node_modules/fsevents/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.1.2 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/Users/charlesirvine/tmp/slate-editor/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz 
node-pre-gyp verb command build [ 'rebuild' ]
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  COPY /Users/charlesirvine/tmp/slate-editor/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp
node-pre-gyp info ok 

@gaearon
Copy link
Contributor

gaearon commented Jun 25, 2017

Have you tried with Node 7?

@CharlesIrvineKC
Copy link
Author

CharlesIrvineKC commented Jun 25, 2017 via email

@gaearon
Copy link
Contributor

gaearon commented Jun 25, 2017

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.

@Timer
Copy link
Contributor

Timer commented Jun 25, 2017

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.

@LeeCheneler
Copy link

LeeCheneler commented Jun 25, 2017

Getting the same issue:

OS

Windows 10

Node Version

7.2.1

NPM Version

5.0.3

CMD output

λ create-react-app test                                                                                                                                                                                            
Creating a new React app in C:\projects\test.                                                                                                                                                                      
                                                                                                                                                                                                                   
Installing packages. This might take a couple minutes.                                                                                                                                                             
Installing react, react-dom, and react-scripts...                                                                                                                                                                  
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
> fsevents@1.0.17 install C:\projects\test\node_modules\fsevents                                                                                                                                                   
> node-pre-gyp install --fallback-to-build                                                                                                                                                                         
                                                                                                                                                                                                                   
node-pre-gyp info it worked if it ends with ok                                                                                                                                                                     
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',                                                                                                                                                     
node-pre-gyp verb cli   'C:\\projects\\test\\node_modules\\fsevents\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',                                                                                               
node-pre-gyp verb cli   'install',                                                                                                                                                                                 
node-pre-gyp verb cli   '--fallback-to-build' ]                                                                                                                                                                    
node-pre-gyp info using node-pre-gyp@0.6.32                                                                                                                                                                        
node-pre-gyp info using node@7.2.1 | win32 | x64                                                                                                                                                                   
node-pre-gyp verb command install []                                                                                                                                                                               
node-pre-gyp info check checked for "C:\projects\test\node_modules\fsevents\lib\binding\Release\node-v51-win32-x64\fse.node" (not found)                                                                           
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v51-win32-x64.tar.gz                                                                                           
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v51-win32-x64.tar.gz                                                                                           
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v51-win32-x64.tar.gz                                                                       
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@7.2.1 (node-v51 ABI) (falling back to source compile with node-gyp)                                                                    
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v51-win32-x64.tar.gz                                                           
node-pre-gyp verb command build [ 'rebuild' ]                                                                                                                                                                      
                                                                                                                                                                                                                   
C:\projects\test\node_modules\fsevents>if not defined npm_config_node_gyp (node "C:\Users\Lee Cheneler\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean ) 
 else (node "" clean )                                                                                                                                                                                             
                                                                                                                                                                                                                   
C:\projects\test\node_modules\fsevents>if not defined npm_config_node_gyp (node "C:\Users\Lee Cheneler\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configur
e --fallback-to-build --module=C:\projects\test\node_modules\fsevents\lib\binding\Release\node-v51-win32-x64\fse.node --module_name=fse --module_path=C:\projects\test\node_modules\fsevents\lib\binding\Release\no
de-v51-win32-x64 )  else (node "" configure --fallback-to-build --module=C:\projects\test\node_modules\fsevents\lib\binding\Release\node-v51-win32-x64\fse.node --module_name=fse --module_path=C:\projects\test\no
de_modules\fsevents\lib\binding\Release\node-v51-win32-x64 )                                                                                                                                                       

@gaearon
Copy link
Contributor

gaearon commented Jun 26, 2017

@LeeCheneler

Please downgrade to npm to npm 4 and try again:

npm i -g npm@4

@gaearon gaearon added this to the 1.0.x milestone Jun 26, 2017
@CharlesIrvineKC
Copy link
Author

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.

Installing packages. This might take a couple minutes.
Installing react-scripts...


> fsevents@1.0.17 install /Users/charlesirvine/src/react/tinymce-editor/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2 (node-v57 ABI) (falling back to source compile with node-gyp) 
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  COPY /Users/charlesirvine/src/react/tinymce-editor/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp
tinymce-editor@0.1.0 /Users/charlesirvine/src/react/tinymce-editor

@gaearon
Copy link
Contributor

gaearon commented Jun 26, 2017

Hmm. The log says:

Pre-built binaries not found for fsevents@1.0.17 and node@8.1.2

I wonder why, given that you say you're trying with Node 7.

@CharlesIrvineKC
Copy link
Author

No, I am using node@8. I haven't used version 7 since it's not supported by brew, the Mac package manager.

@gaearon
Copy link
Contributor

gaearon commented Jun 26, 2017

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.

@juancortez
Copy link

Having a similar issue.

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@6.11.0 (node-v48 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]

It might be an npm problem. I was having this problem and just ran $npm i -g npm@3.10.8 and I am able to run $create-react-app fine now.

@dparkar
Copy link

dparkar commented Jun 27, 2017

If I run :

sudo npm -i -g npm@3.10.8

and then run create-react-app errors turn into warnings, I get :

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.17 (node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

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.

@gaearon
Copy link
Contributor

gaearon commented Jun 27, 2017

It will work fine. fsevents is only needed on macOS. Unfortunately npm produces a noisy warning, but in practice this is working as intended.

@gaearon
Copy link
Contributor

gaearon commented Jun 27, 2017

Going to hide those nasty warnings 😛
#2635

@gaearon
Copy link
Contributor

gaearon commented Jun 27, 2017

The error was solved by #2550.
The warning was solved by #2635.

Closing.

@gaearon gaearon closed this as completed Jun 27, 2017
@gaearon gaearon modified the milestones: 1.0.8, 1.0.x Jun 27, 2017
@yenly
Copy link

yenly commented Jun 27, 2017

Hi all,
Love the quick response and fix. I'm new to OSS and to react dev. Big fan of all the tooling you're all building. I see a fix is checked it. How do I get this update on my local create-react-app env to use? Thanks in advance!

@gaearon
Copy link
Contributor

gaearon commented Jun 27, 2017

I'll cut a fix tomorrow. It's only in master, but not released yet.

@gaearon
Copy link
Contributor

gaearon commented Jun 28, 2017

Fixed in 1.0.8. Please verify.
https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.8

@CharlesIrvineKC
Copy link
Author

CharlesIrvineKC commented Jun 28, 2017 via email

hysan added a commit to hysan/instructor-code-challenge that referenced this issue Feb 22, 2018
This fixes the following error on macOS with regards to and fsevents@1.0.17 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.
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants