corepack icon indicating copy to clipboard operation
corepack copied to clipboard

support corepack -g ls command

Open gweesin opened this issue 1 year ago • 4 comments

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.

gweesin avatar Sep 29 '24 14:09 gweesin

What use case do you have in mind? I'm not sure I understand why it would matters which package managers are installed.

aduh95 avatar Sep 29 '24 20:09 aduh95

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.

gweesin avatar Sep 30 '24 02:09 gweesin

In that case, I would set the debug environment variable (DEBUG=corepack) to enable verbose logs.

styfle avatar Sep 30 '24 14:09 styfle

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.

kaokei avatar Jan 15 '25 11:01 kaokei

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?

Cufoon avatar Sep 10 '25 07:09 Cufoon