-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Change fsevents from optional -> conditional dependency; don't generate warnings on OS' it's not intended for #779
Comments
npm - package.json OS specific dependency - Stack Overflow for related discussion. |
The warning is annoying and pointless, but since npm doesn't actually have a "conditional dependency" feature that's not a solution... |
yeah — nothing we can do here I agree the warning is annoying. |
This problem has been around for at least 5 years. I wonder how much money this has cost; some people pay for CI logs by line... 🤔 |
Please don't trip over dollars to pick up pennies. Who wrote your CI logger? Perhaps you could reach out to them and ask how to squelch the warning so you can save yourself a couple pennies. |
@JHabdas This wasn't a complaint directed at chokidar/paulmillr per se. More an observation made in frustration. Realistically, this is more of an Although, some quick napkin math would indicate that we're talking much more than pennies potentially: Seeing as how this has been a problem for the better part of a decade, and it's approaching 10,000,000 downloads a week (with the vast majority of those being CI)... We're already in the billions of lines printed and that's not even accounting for the fact that most CI pipelines and yarn do a pretty good job of caching. 🤦♂️ |
I thought napkin math was supposed to accompany a beer. :)~ Nevertheless I believe you hit the nail on the head—this is squarely an issue with NPM as far as I'm aware. |
I run yarn 1.12.3
EVERY time I exec a yarn command, I see
...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
...
I've not directly required fsevents.
Checking
I do have a direct dependency for
which includes
and in
I do want to continue using babel/cli.
This 'fsevents' message provides no useful information; it's just noise. It's obviously NOT being used on this platform, 'linux'. IIUC, it's intended for MacOS only.
Can this incessant fsevents message be silenced?
A seemingly sane option is to make fsevents a platorm-specific, CONTITIONAL dependency, as discussed/suggested here:
yarnpkg/yarn#3738 (comment)
The text was updated successfully, but these errors were encountered: