-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Filter out fsevents warning/info on non supported OS messages #2564
Comments
yarn --ignore-optional --ignore-platform ? |
Why would you want to type that every single time you run yarn? I tried putting the following in ~/.yarnrc, .yarnrc in project folder, and even in yarn lock:
None of them work. I didnt know these were CLI commands, so I guess my request is to make hide optionals default, and make it --show-optional-warnings and hide platform errors if the dep is optional. You wouldn't want to block all of these warnings, as you might try to actually use something thats not optional and you need to know. but cases like fsevents is 100% useless to see it, and should be default to not see it. |
Please add this to your roadmap as it is confusing to packager users to get spurious warnings. I've tried to get the warning hid by the node team with no success. See nodejs/node#7858 |
I'll add that there is an option to filter out optional, it just doesn't work with |
Related: npm/npm#2006 |
Discussion here #3738 |
Note: In case of fsevents (most common case) ignoring it causes very slow watching solution to be used instead on OS X. The desired behavior is to still install it when possible but not warn if not. I only leave this comment here for future readers who might think |
I am really tired of seeing this useless This situation pushes people to filter out all warnings or use |
2020 checking in, this is still a frustrating thing |
Still waiting on either npm or Yarn to allow gating a dependency based on OS. 😉 Not a dev of either, obviously. |
I think currently we can use a workaround like alias: I tested with --ignore-platform and it doesnt show warning about the fsevents |
echo '--ignore-platform true' > .yarnrc |
Yeah @ctrongminh @andreyors, I don’t love it, but is the best option available to users to address these erroneous warnings. |
Able to do this with below script in working folder. echo '--ignore-platform true' > .yarnrc |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The following prints on linux:
What is the expected behavior?
Yarn should suppress this message when verbose flag is not passed, as it's provides no feedback and only confuses users new to npm/yarn (I had to explain to someone that it's a harmless warning)
Please mention your node.js, yarn and operating system version.
yarn 0.19.1, node 6.9.4, linux
The text was updated successfully, but these errors were encountered: