-
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
No way to silence warnings #6672
Comments
Hey guys, I know you must have a huge backlog but this one seems to be a quick one with a decent amount of support (25 👍). Is there any chance you could take a quick look at it? Thanks! |
+ 1 |
On a Unix system (Linux, macOs) you can do some grepping! yarn install 2> >(grep -v warning 1>&2) this cleaned up our logs in CI at least. |
Until yarnpkg/yarn#6672 is resolved, this kind of hacky solutions is the only way not to go bananas with yarn's unactionable-for-me-warning-messages.
+1 |
1 similar comment
+1 |
Until yarnpkg/yarn#6672 is resolved, this kind of hacky solutions is the only way not to go bananas with yarn's unactionable-for-me-warning-messages.
Until yarnpkg/yarn#6672 is resolved, this kind of hacky solutions is the only way not to go bananas with yarn's unactionable-for-me-warning-messages.
Closing as you can now silence specific warnings in v2 via |
Why is this closed? Also the link doesnt show how to silcen deprecations? |
The documentation link does. You should add this to your yarnrc config yaml logFilters: [{
code: 'YN0002',
level: 'discard',
}] Which ironically is json :) |
I just added
to scripts in package.json and works just fine |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Using
yarn --silent
is not silent since it displays a lot of errors related to package deprecation.For example:
If the current behavior is a bug, please provide the steps to reproduce.
Add
hapi@2
topackage.json
and runyarn install
What is the expected behavior?
Either
yarn --silent
should be truly silent, or a log level configuration should be added to add the ability to ignore warnings.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: