nodejs / nodejs/corepack

Feature request: Add Yarn bin to PATH on Windows

Open
#91 1 comment 2 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

Right out of the gate, this is my first interaction on a public repository, so feel free to throw some feedback at me.

Basically i would like for corepack to automatically add the yarn's bin directory to path, so globally installed packages can be used from PowerShell | cmd without any hassle.

This is not a behavior on windows, can't test on different OS right now.

Perhaps when the corepack enable command is used this action could be triggered, so it doesn't make any unnecessary changes for those not using 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 at the corepack enable command and investigate how it handles Windows setup for PowerShell and cmd. Done means the Yarn bin directory is added to PATH when corepack enable is used, allowing globally installed packages to run on Windows without changing systems that do not use Corepack.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.