tabrindle / envinfo

Generate a report about your development environment for debugging and issue reporting
MIT License
759 stars 58 forks source link

Envinfo adding "packageManager": "pnpm@ to package.json #260

Open lts20050703 opened 4 months ago

lts20050703 commented 4 months ago

After running npx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsers, envinfo added "packageManager": "pnpm@ to my package.json. I have enabled corepack and have pnpm installed, but that doesn't mean I use pnpm for every single projects.

Output:

  System:
    OS: Linux 6.5 KDE neon 6.0 6.0
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 11.02 GB / 15.40 GB
    Container: Yes
    Shell: 3.7.1 - /usr/bin/fish
  Binaries:
    Node: 22.3.0 - ~/.local/share/nvm/v22.3.0/bin/node
    Yarn: 1.22.21 - ~/.local/share/nvm/v22.3.0/bin/yarn
    npm: 10.8.1 - ~/.local/share/nvm/v22.3.0/bin/npm
    pnpm: 8.15.3 - ~/.local/share/nvm/v22.3.0/bin/pnpm
    bun: 1.1.10 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 126.1.67.119
  npmPackages:
    svelte: ^5.0.0-next.154 => 5.0.0-next.154
karlhorky commented 2 weeks ago

I think this is default Corepack behavior (since corepack@0.26.0), probably not an issue with envinfo:

You may want to try setting COREPACK_ENABLE_AUTO_PIN=0