Skip to content

Conversation

@anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Nov 12, 2025

Summary

Addresses #11035 by adding preferLocal and shell options to execa calls for package manager commands. This resolves the "no package.json found" error that occurs when using Bun installed via bash installer on Windows.

When Bun is installed via curl -fsSL https://bun.sh/install | bash, it's placed in a Unix-style PATH that Node.js can't access without shell context. Using shell: true on Windows allows the shell to resolve these commands properly.

Test Results

CI and canarying to be verified on Windows.

…ands

Add preferLocal and shell options to execa calls to properly resolve package manager executables on Windows, especially when Bun is installed via the bash installer. This fixes issue #11035 where "no package.json found" error occurs during create-turbo on Windows with Bun.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
examples-basic-web Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-designsystem-docs Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-gatsby-web Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-kitchensink-blog Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-nonmonorepo Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-svelte-web Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-tailwind-web Ready Ready Preview Comment Nov 12, 2025 5:50pm
examples-vite-web Ready Ready Preview Comment Nov 12, 2025 5:50pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
turbo-site Skipped Skipped Nov 12, 2025 5:50pm

@anthonyshew anthonyshew changed the title fix(workspaces): use shell option on Windows for package manager fix(workspaces): Use shell option on Windows for package manager Nov 12, 2025
@anthonyshew anthonyshew changed the title fix(workspaces): Use shell option on Windows for package manager fix(workspaces): Use shell option on Windows in execa call Nov 12, 2025
@anthonyshew anthonyshew merged commit fdc7e65 into main Nov 12, 2025
178 of 182 checks passed
@anthonyshew anthonyshew deleted the fix-bun-windows-package-json branch November 12, 2025 18:46
ch4og pushed a commit to csmplay/mapban that referenced this pull request Dec 4, 2025
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [turbo](https://turborepo.com) ([source](https://github.com/vercel/turborepo)) | [`2.6.1` -> `2.6.2`](https://renovatebot.com/diffs/npm/turbo/2.6.1/2.6.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/turbo/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/turbo/2.6.1/2.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/turborepo (turbo)</summary>

### [`v2.6.2`](https://github.com/vercel/turborepo/releases/tag/v2.6.2): Turborepo v2.6.2

[Compare Source](vercel/turborepo@v2.6.1...v2.6.2)

<!-- Release notes generated using configuration in .github/release.yml at v2.6.2 -->

#### What's Changed

##### Docs

- docs: Add mentions to `turborepo-summary` and `turborepo-summary-action` by [@&#8203;charpeni](https://github.com/charpeni) in [#&#8203;11023](vercel/turborepo#11023)
- docs: Add new testimonial to home page by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11116](vercel/turborepo#11116)
- docs: Fix copy-pasted testimonial quote by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11117](vercel/turborepo#11117)
- docs: Fix typo in tailwind set up guide by [@&#8203;hookim](https://github.com/hookim) in [#&#8203;11143](vercel/turborepo#11143)
- docs: Update Prisma integration guide link by [@&#8203;AdelFetner](https://github.com/AdelFetner) in [#&#8203;11155](vercel/turborepo#11155)
- docs: Fix vitest merged code coverage example by [@&#8203;jonathansamines](https://github.com/jonathansamines) in [#&#8203;11158](vercel/turborepo#11158)

##### Examples

- examples: Bump `turbo` to latest by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11100](vercel/turborepo#11100)
- examples: Remove uneeded microfrontends.json property by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11101](vercel/turborepo#11101)
- examples(dev-deps): bump [@&#8203;types/react](https://github.com/types/react) from 19.2.2 to 19.2.5 in /examples/non-monorepo by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11125](vercel/turborepo#11125)
- examples(with-nestjs): Add missing eslint devDependency by [@&#8203;cmg8431](https://github.com/cmg8431) in [#&#8203;11138](vercel/turborepo#11138)
- fix(with-vite-react): Remove unused React import to fix build error by [@&#8203;chosim-dvlpr](https://github.com/chosim-dvlpr) in [#&#8203;11162](vercel/turborepo#11162)
- examples(dev-deps): bump the with-svelte group in /examples/with-svelte with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11152](vercel/turborepo#11152)
- examples(dev-deps): bump typescript-eslint from 8.46.3 to 8.47.0 in /examples/basic in the basic group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11149](vercel/turborepo#11149)
- examples(dev-deps): bump [@&#8203;types/react](https://github.com/types/react) from 19.2.5 to 19.2.7 in /examples/non-monorepo by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11151](vercel/turborepo#11151)
- examples(kitchen-sink): Use simpler eslint config for kitchen-sink by [@&#8203;dsm23](https://github.com/dsm23) in [#&#8203;11163](vercel/turborepo#11163)
- examples: Fix lockfile in kitchen-sink by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11174](vercel/turborepo#11174)
- examples(security): Upgrade Next.js versions by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11188](vercel/turborepo#11188)
- examples: Add `with-biome` example by [@&#8203;2qp](https://github.com/2qp) in [#&#8203;11145](vercel/turborepo#11145)

##### Changelog

- chore: Get rid of unneeded workspace definition by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11102](vercel/turborepo#11102)
- fix: Make selected task highlight use reverse video for accessibility by [@&#8203;biru-codeastromer](https://github.com/biru-codeastromer) in [#&#8203;11090](vercel/turborepo#11090)
- feat(tui): Add padding to task names and icons by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11104](vercel/turborepo#11104)
- docs: Fix grammar, consistency, and formatting issues in CONTRIBUTING.md by [@&#8203;DevaanshKathuria](https://github.com/DevaanshKathuria) in [#&#8203;11105](vercel/turborepo#11105)
- fix(workspaces): Use `shell` option on Windows in `execa` call by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11108](vercel/turborepo#11108)
- ci(fix): Fix flaky macOS tests by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11128](vercel/turborepo#11128)
- feat: Add Windows-specific env var to default passthroughs by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11126](vercel/turborepo#11126)
- fix(config-dir): Resolve relative `TURBO_CONFIG_DIR_PATH` before validation by [@&#8203;praggCode](https://github.com/praggCode) in [#&#8203;11122](vercel/turborepo#11122)
- fix: Use -z option to git commands to handle unicode file paths by [@&#8203;hahnlee](https://github.com/hahnlee) in [#&#8203;10844](vercel/turborepo#10844)
- test: Coverage for [#&#8203;10844](vercel/turborepo#10844) by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11137](vercel/turborepo#11137)
- docs(internal): Document release pipeline by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11141](vercel/turborepo#11141)
- fix: Validate missing <cwd-path> argument in test-codemod server script by [@&#8203;sakina1303](https://github.com/sakina1303) in [#&#8203;11166](vercel/turborepo#11166)
- ci: fixing release pipeline by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11179](vercel/turborepo#11179)
- ci: Ensure npm version is current by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11180](vercel/turborepo#11180)
- ci: Log npm version by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11181](vercel/turborepo#11181)
- ci: More release pipeline logging by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11183](vercel/turborepo#11183)
- ci: Loose env mode for publishing step by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11184](vercel/turborepo#11184)

#### New Contributors

- [@&#8203;biru-codeastromer](https://github.com/biru-codeastromer) made their first contribution in [#&#8203;11090](vercel/turborepo#11090)
- [@&#8203;DevaanshKathuria](https://github.com/DevaanshKathuria) made their first contribution in [#&#8203;11105](vercel/turborepo#11105)
- [@&#8203;zacowan](https://github.com/zacowan) made their first contribution in [#&#8203;11109](vercel/turborepo#11109)
- [@&#8203;charpeni](https://github.com/charpeni) made their first contribution in [#&#8203;11023](vercel/turborepo#11023)
- [@&#8203;praggCode](https://github.com/praggCode) made their first contribution in [#&#8203;11122](vercel/turborepo#11122)
- [@&#8203;hahnlee](https://github.com/hahnlee) made their first contribution in [#&#8203;10844](vercel/turborepo#10844)
- [@&#8203;cmg8431](https://github.com/cmg8431) made their first contribution in [#&#8203;11138](vercel/turborepo#11138)
- [@&#8203;hookim](https://github.com/hookim) made their first contribution in [#&#8203;11143](vercel/turborepo#11143)
- [@&#8203;AdelFetner](https://github.com/AdelFetner) made their first contribution in [#&#8203;11155](vercel/turborepo#11155)
- [@&#8203;sakina1303](https://github.com/sakina1303) made their first contribution in [#&#8203;11166](vercel/turborepo#11166)
- [@&#8203;chosim-dvlpr](https://github.com/chosim-dvlpr) made their first contribution in [#&#8203;11162](vercel/turborepo#11162)
- [@&#8203;jonathansamines](https://github.com/jonathansamines) made their first contribution in [#&#8203;11158](vercel/turborepo#11158)
- [@&#8203;dsm23](https://github.com/dsm23) made their first contribution in [#&#8203;11163](vercel/turborepo#11163)
- [@&#8203;2qp](https://github.com/2qp) made their first contribution in [#&#8203;11145](vercel/turborepo#11145)

**Full Changelog**: <vercel/turborepo@v2.6.1...v2.6.2>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNC4yIiwidXBkYXRlZEluVmVyIjoiNDIuMTQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.csmpro.ru/csmpro/mapban/pulls/65
Co-authored-by: Renovate Bot <renovate@csmpro.ru>
Co-committed-by: Renovate Bot <renovate@csmpro.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants