berry
berry copied to clipboard
[Feature] Add `--verbose` or respect npm loglevel in yarn installation step
- [ ] I'd be willing to implement this feature (contributing guide)
- [ ] This feature is important to have in this repository; a contrib plugin wouldn't do
Describe the user story
The install step of yarn modern does not have a verbose logging mode.
$ mkdir test-yarn && cd test-yarn
$ yarn set version 1.22.22
$ yarn init -y
$ yarn --verbose
yarn install v1.22.22
verbose 0.092036833 Checking for configuration file "/Users/trivikr/workspace/test-yarn/.npmrc".
verbose 0.092170416 Checking for configuration file "/Users/trivikr/.npmrc".
verbose 0.092215958 Found configuration file "/Users/trivikr/.npmrc".
verbose 0.092579791 Checking for configuration file "/Users/trivikr/Library/Application Support/fnm/node-versions/v20.12.0/installation/etc/npmrc".
verbose 0.092656333 Checking for configuration file "/Users/trivikr/workspace/test-yarn/.npmrc".
verbose 0.092828458 Checking for configuration file "/Users/trivikr/workspace/.npmrc".
verbose 0.092959083 Checking for configuration file "/Users/trivikr/.npmrc".
verbose 0.0930795 Found configuration file "/Users/trivikr/.npmrc".
verbose 0.093206 Checking for configuration file "/Users/.npmrc".
verbose 0.093951416 Checking for configuration file "/Users/trivikr/workspace/test-yarn/.yarnrc".
verbose 0.094008291 Found configuration file "/Users/trivikr/workspace/test-yarn/.yarnrc".
verbose 0.09411125 Checking for configuration file "/Users/trivikr/.yarnrc".
verbose 0.094187458 Found configuration file "/Users/trivikr/.yarnrc".
verbose 0.094302958 Checking for configuration file "/Users/trivikr/Library/Application Support/fnm/node-versions/v20.12.0/installation/etc/yarnrc".
verbose 0.094367791 Checking for configuration file "/Users/trivikr/workspace/test-yarn/.yarnrc".
verbose 0.094404 Found configuration file "/Users/trivikr/workspace/test-yarn/.yarnrc".
verbose 0.09451925 Checking for configuration file "/Users/trivikr/workspace/.yarnrc".
verbose 0.094560166 Checking for configuration file "/Users/trivikr/.yarnrc".
verbose 0.094591625 Found configuration file "/Users/trivikr/.yarnrc".
verbose 0.094755833 Checking for configuration file "/Users/.yarnrc".
verbose 0.096505666 current time: 2024-03-27T15:12:22.391Z
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
✨ Done in 0.02s.
$ yarn set version 4.1.1
$ yarn --verbose
Unknown Syntax Error: Unsupported option name ("--verbose").
Describe the solution you'd like
Add --verbose
option to yarn which documents every change yarn is doing, or where configuration is being read from.
For example, I was interested to find where bin object is converted to string in https://github.com/yarnpkg/berry/issues/6184
Describe the drawbacks of your solution
N/A. The folks who explicitly pass --verbose
would like to know what yarn is doing
Describe alternatives you've considered
Switching to alternate providers which provide verbose mode