Tools hardcoded to run scripts with npm fail when using corepack-managed npm
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 279
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
This worked when using node-managed npm. Ideally I would be able to use npm test and npm run and such but not npm install when a package has packageManager set.
$ npm test
Usage Error: This project is configured to use pnpm
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
Reproduce the failure with npm test or npm run in a project whose packageManager is set to pnpm. Trace how Corepack handles these script commands and verify that the requested script commands work while npm install remains excluded from the intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100