Shim doesn't work for npm when npm is installed with brew
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 279
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
If npm is installed in brew, for example as a dependency of the jupytherhub formulae, corepack enable npm doesn't shim it.
Note:
Even brew uninstall npm doesn't remove the npm installation
Have to manually rm -rf /opt/homebrew/bin/npm to make it work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with npm installed through brew, then run corepack enable npm and inspect the npm path at /opt/homebrew/bin/npm. The fix is done when Corepack creates the npm shim correctly without requiring brew uninstall npm or manual removal of that path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100