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

Install on OS X fails as prebuilt binary seems to be missing from S3 #181

Closed
thekevinbrown opened this issue Jul 3, 2017 · 15 comments
Closed

Comments

@thekevinbrown
Copy link

thekevinbrown commented Jul 3, 2017

Install Fails

When we run yarn install we're getting the following:

$ yarn install
yarn install v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠂ fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
warning Error running install script for optional dependency: "/Users/danieldbird/Code/toolkit-for-ynab/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node install\nDirectory: /Us
ers/danieldbird/Code/toolkit-for-ynab/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using node-pre-gyp@0.6.33\nnode-pre-gyp info using node@8.1.3 | darwin | x64\
nnode-pre-gyp info check checked for \"/Users/danieldbird/Code/toolkit-for-ynab/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries
.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR!
Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.1 and node@8.1.3 (node-v5
7 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnod
e-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/danieldbird/Code/toolk
it-for-ynab/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack     at emitOne (events.js:115:13)\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:7)
\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)\nnode-pre-gyp ERR! stack     at onErrorNT (internal/child_process.js:366:16)\nnode-pre-gyp ERR! stack     at
_combinedTickCallback (internal/process/next_tick.js:102:11)\nnode-pre-gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:161:9)\nnode-pre-gyp ERR! System Darwin 16.6.0\nnode-pre-gyp ERR! c
Done in 4.08s.

You can replicate by cloning the repo here: https://github.com/toolkit-for-ynab/toolkit-for-ynab then running yarn.

Analysis

It looks to me like this error is because it's trying to download this tarball: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz which 404s on S3.

Is there a way to work around this?

@bnoordhuis
Copy link
Contributor

Upgrade to v1.1.2, that's the first version with precompiled binaries for node.js 8.

@pesterhazy
Copy link

I'm seeing the same error. But I added 1.1.2 and it's right there in yarn.lock. fsevents still tries to grab the 1.1.1 url from s3.

@es128
Copy link
Contributor

es128 commented Jul 19, 2017

@pesterhazy try running yarn cache clean

@es128 es128 closed this as completed Jul 19, 2017
@pesterhazy
Copy link

pesterhazy commented Jul 19, 2017 via email

@es128
Copy link
Contributor

es128 commented Jul 19, 2017

It's not an fsevents issue. You could try deleting and reinstalling all dependencies. If you continue to have issues it sounds like something you should take up with yarn support.

@pesterhazy
Copy link

It could be a yarn issue, true. Thanks for your help. I fixed this by downgrading to node 6 (brew install node@6)

@jayantbh
Copy link

jayantbh commented Jun 5, 2018

Similar to @pesterhazy, I resolved the issue on my system by downgrading to the current LTS version of Node, which happens to be version 8.11.2 at the moment. Before this I was on version 10.2.1.

@erikaperugachi
Copy link

erikaperugachi commented Jun 5, 2018

The same as @jayantbh. I have to downgrade node from 8.11 to 10.2.1 . And I fix the problem

@es128
Copy link
Contributor

es128 commented Jun 6, 2018

If you're on node v10, then you need fsevents v1.2.3 minimum

@marplemr
Copy link

can confirm installing fsevents v1.2.4 solved this issue on node 10.5.0

@nguyennb9
Copy link

npm install -D fsevents@1.2.4 resolved the issue on node 10.8.0.

@kunwang0916
Copy link

I solved this issue by update to lastest version of fsevents.
npm install fsevents@latest

@nguyennb9
Copy link

By the way, when I upgrade Mac OS to High Sierra, the problem also solved.

@dnlsilva
Copy link

dnlsilva commented Oct 5, 2018

npm install -D fsevents@1.2.4 resolved the issue on node 10.8.0.

Tks saved me!

@ahmedmaazin
Copy link

I solved this issue by update to lastest version of fsevents.
npm install fsevents@latest

npm install fsevents@latest worked. Thanks

mahn00b added a commit to mahn00b/next-typescript-app that referenced this issue Mar 6, 2023
- Upgraded storybook using cli
- Added new addon packages for sass processing in storybook
- Upgrading storybook addon packages to be compatible with React 18
- Added style-loader and css-loader to suppport sass in storybook
- Migrated storybook to use webpack v5 instead v4
- Refactored storybook config files to use typescript
- Added the fsevents@latest to mitigate issues with outdated transient dependencies. (Read more: fsevents/fsevents#181)
- Updated the example Button component story config to leverage storybook's typescript defs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests