8000 Missing global pnpm and bun package listing from doctor command. · Issue #3035 · infinitered/ignite · GitHub
[go: up one dir, main page]

Skip to content

Missing global pnpm and bun package listing from doctor command. #3035

Open

Description

@aadil42

Running doctor command doesn't output globally installed packages by bun or pnpm.

Output when you have packages installed globally by bun or pnpm

Image Image

Output when you run doctor command.

Image

Output when you run doctor command should display globally installed packages. like so:

(Haven't fixed the bun yet so only pnpm packages are sown. But we can do the same thing for bun)
Image

Activity

  1. aadil42 commented on Mar 26, 2026

    @aadil42
    ContributorAuthor

    Root cause.

    Here we're not calling packageInfo for pnpmPackages.

    // TODO: list pnpm global packages in doctor output
    const pnpmPackages = pnpmPath
    ? [[column1(" "), column2("<no pnpm global package info available>"), column3("")]]
    : []

    Calling pnpmPackages ultimately leads to this function:
    We're not taking care when the package is pnpm.

    if (options.packagerName === "pnpm") {
    // TODO: pnpm list?
    throw new Error("pnpm list is not supported yet")

    We should also create bunPackages by calling packageInfo for bun

    Check the bun condition in this function, looks like we just copy pasted yarn's parser.
    We should parse it for bun instead.

    Also the comment asks if we should use global here. We should since we are displaying globally installed packages so we should conditionally use global flag like we do for yarn

    } else if (options.packagerName === "bun") {
    return [
    // TODO do we need to add --global here?
    `bun pm ls`,
    (output: string): [string, string][] => {
    // Parse yarn's human-readable output
    return output
    .split("\n")
    .reduce((acc: [string, string][], line: string): [string, string][] => {
    const match = line.match(/info "([^@]+)@([^"]+)" has binaries/)
    return match ? [...acc, [match[1], match[2]]] : acc
    }, [])
    },
    ]
    } else if (

  2. aadil42 commented on May 10, 2026

    @aadil42
    ContributorAuthor

    @markrickert @frankcalise Guys, should I create the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0