-
Notifications
You must be signed in to change notification settings - Fork 190
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
Feature Request: corepack info #180
Comments
Sounds good, a few thoughts:
My suggestion would be it should rather look something like: $ corepack info
corepack report:
node version: 16.8.0
local package manager [defined in /path/to/actual/package.json]: [email protected]
cache directory: /home/user/.cache/node/corepack/
network access: enabled Would you be interested in sending a PR?
That's a bit off topic, but most likely the |
I think a MPV might be to show the reason a given yarn, npm, or pnpm is chosen corepack show yarn - might show which version of yarn will be used and how that was determined i.e. nvm use, shows the place where the node version was specified when it runs I'm sorry to request a feature and not supply a PR, not enough cycles |
That could be helpful: show which package.json was used. I'm wondering if that should be added to |
Does corepack ONLY look at package.json ? I thought it looked at .yarnrc also And when I'm not in a folder w/package.json - what does it use? (or is it not used at that point, and falls back on whatever is at $(which yarn) ? |
It only looks at package.json, although once spawned Yarn will still look for a |
I would love to have a [custom.corepack]
command = "corepack info"
files = ["package.json"]
style = "bold blue"
symbol = "v" What the issue creator seems to envision sounds more like a |
Feature Request: corepack info
Running
corepack info
should result in a listing describing what corepack knows about the local directory and how discovered, and then the same information about the global environmentcontrived example (created in a pre-caffeinated environment)
Why?
Note:
I don't understand exactly, but that's not the install directory... it's what
which corepack
returns - but the real install directory is here: /usr/local/Cellar/corepack/0.14.0/libexec/lib/node_modules/corepack (installed via brew on a Mac)I'm trying to disable [email protected] but I can't, I think I can only disable yarn and then reactivate [email protected]
The text was updated successfully, but these errors were encountered: