codesandbox / codesandbox/codesandbox-client
`packageManager: npm` is not respected
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the [Contributing Guidelines][contributing] for this project.
- I agree to follow the [Code of Conduct][code_of_conduct] that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
+ corepack enable (in /)
+ yarn -v (in /tmp/5959e69a)
Usage Error: This project is configured to use npm
$ yarn ...
Error: Process rejected with status code 1
at ChildProcess.<anonymous> (/app/dist/utils/exec.js:20:27)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
code: 1
}
https://ci.codesandbox.io/status/un-ts/native-postinstall/pr/2/builds/608883
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 from the linked CI build, starting with the corepack enable and yarn -v commands shown in the report. Trace the package-manager handling around /app/dist/utils/exec.js and verify that a project configured with packageManager: npm uses npm rather than Yarn and completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100