-
-
Couldn't load subscription status.
- Fork 1.2k
Description
- I'd be willing to implement this feature
- This feature can already be implemented through a plugin (I'm new to contributing, so I'm not sure)
Describe the user story
I've recently began updating a few projects to Yarn 2 and while I really like the improvements, one thing that has been a big pain point is the __archiveUrl of packages being output in the logs. My company uses a private npm registry and so a large majority of installed packages will have this tacked on to the end of the logs. This results in output that looks similar to this:
➤ YN0041: │ @company/package-a@npm:10.11.0::__archiveUrl=https://company.registry.com/company/api/npm/npm-virtual/@company/package-a/-/@company/package-a-10.11.0.tgz: Invalid authentication (as an anonymous user)
➤ YN0041: │ @company/package-b@npm:10.11.0::__archiveUrl=https://company.registry.com/company/api/npm/npm-virtual/@company/package-b/-/@company/package-b-10.11.0.tgz: Invalid authentication (as an anonymous user)
➤ YN0041: │ @company/package-c@npm:10.11.0::__archiveUrl=https://company.registry.com/company/api/npm/npm-virtual/@company/package-c/-/@company/package-c-10.11.0.tgz: Invalid authentication (as an anonymous user)
➤ YN0041: │ @company/package-d@npm:10.11.0::__archiveUrl=https://company.registry.com/company/api/npm/npm-virtual/@company/package-d/-/@company/package-d-10.11.0.tgz: Invalid authentication (as an anonymous user)In our CI pipeline, these logs will often wrap creating very unreadable output. We have quite a few logs right now as we are working on fixing peer dependency issues in our packages and other issues, but I could see this being a pain point for other new users who are starting to make the transition to Yarn 2.
Describe the solution you'd like
Having an option to disable printing the c in the logs or remove it entirely. I would lean towards an option as I could see value in having it when debugging where packages are attempting to be installed from.
Describe the drawbacks of your solution
More options means more combinations to test. Also, how would this option be named to be clear and not confuse users? Especially since this really only applies to packages from private registries that I can tell.
Describe alternatives you've considered
Dealing with the logs and calling it a day. I waffled on whether to open this issue, but figured it would be helpful to at least have the discussion.