corepack
corepack copied to clipboard
support corepack -g ls command
related to #553
suggest adding a command like corepack -g ls to list all globally installed package managers' configurations. This would allow users to easily view the package managers available in their system and switch between them.
What use case do you have in mind? I'm not sure I understand why it would matters which package managers are installed.
My colleague is experiencing an issue where downloading pnpm using corepack always returns a 302 error. I want to verify if I encounter the same problem when accessing pnpm. However, I've installed almost every version of pnpm, and I'm wondering if there's a command to query the installed versions(corepack -g ls but it doesn't exist). This would help me determine which specific version I need to test that I haven't installed yet.
As a side note, the http 302 issue was resolved for my colleague after upgrading to the latest corepack.
In that case, I would set the debug environment variable (DEBUG=corepack) to enable verbose logs.
It is a common case to determine which versions of pnpm are installed on a system, as well as confirm the default global pnpm version.
I use a tool that can install some packages or some versions of some packages in my global environment. I want to know which packages and versions I have installed now. It is such a simple and necessary function, but it has not been implemented until now. Why?