Yarn: No way to silence warnings

Created on 13 Nov 2018  路  5Comments  路  Source: yarnpkg/yarn

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:

warning workspace-aggregator-7f30cf29-537f-48a2-86b0-a91668bf6021 > hapi-f3323ea51e133c445b5c74b7fce4def22ad0f7bb > [email protected]: This version is no longer maintained. Please upgrade to the latest version of the framework.

If the current behavior is a bug, please provide the steps to reproduce.

Add hapi@2 to package.json and run yarn 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.

  • macOS 10.13.6
  • Node v8.11.1
  • yarn 1.9.4
triaged

Most helpful comment

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!

All 5 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.

+1

+1

Was this page helpful?
0 / 5 - 0 ratings