#271·ni

Run `na --version` failed when corepack enabled npm

Author: zanminkianCreated Mar 20, 2025Updated Mar 20, 2025

Describe the bug

If corepack has enabled npm using corepack enable npm, running na --version will fail in pnpm project

Reproduction

This project can reproduce by running corepack enable npm && na --version

System Info

bash
Linux

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)