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 <[email protected]>
@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
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