nodejs / nodejs/corepack

`corepack npm` and other package managers are not shown in help text

Open
#301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.8k
Forks
279
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Calling corepack or corepack --help shows help for e.g. corepack install, but does not suggest the shimless aliases, namely:

  • corepack npm, corepack npx
  • corepack pnpm, corepack pnpx
  • corepack yarn, corepack yarnpkg

These are also not suggested as typo corrections:

corepack np

Unknown Syntax Error: Command not found; did you mean one of:

  1. corepack -h
  2. corepack -v
  3. corepack disable [--install-directory #0] ...
  4. corepack enable [--install-directory #0] ...
  5. corepack install <-g,--global> [--all] [--cache-only] ...
  6. corepack install
  7. corepack pack [--all] [--json] [-o,--output #0] ...
  8. corepack up
  9. corepack use
  10. corepack hydrate [--activate]
  11. corepack prepare [--activate] [--all] [--json] [-o,--output] ...

While running np

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the corepack CLI help output and its unknown-command suggestion path. Add the listed npm, npx, pnpm, pnpx, yarn, and yarnpkg aliases to both places, then verify that corepack --help displays them and corepack np suggests the expected commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.