nodejs / nodejs/corepack

Feature request: corepack command to call manager cli (to install project's dependencies using defined package manager)

Open
#352 14 comments 5 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

I would like to install packages in a project without thinking about which package manager should be used in this project.

This can be solved with the corepack manager proxy command that would call package manager that is defined in "packageManager" section of project's package.json, so it would be possible to install packages via corepack manager install.

BTW, corepack up does similar, after upgrading package manager it installs project's packages (together with yarn at least), but I think this was not intended by corepack.

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 by tracing how Corepack reads the project's package.json packageManager field and how the existing corepack up command installs dependencies. Define the delegation behavior for corepack manager install and related arguments, then verify that it invokes the package manager selected by the project configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.