-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
kind: bugSomething isn't workingSomething isn't workingneeds: triageNew issues get this label. Remove it after triageNew issues get this label. Remove it after triage
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
s
Which canary version will you have in your reproduction?
2.5.4
Environment information
### Environment Details
- **OS**: Windows_NT 10.0.26100 (Windows 11)
- **Node.js**: v20.17.0
- **npm**: v10.8.2
- **TurboJS Version**: 2.5.4
- **Shell**: PowerShell
- **Architecture**: x64 (from error context)
Expected behavior
TruboJS should work on windows if installed
Actual behavior
Issue Description
TurboJS installation fails on native Windows with missing binary errors, despite successful installation via npm. The same setup works correctly under WSL 2.0, suggesting a Windows-specific platform compatibility issue.
Reproduction Steps
- Fresh project setup on Windows
- Run
npm install turbo --save-dev
- Attempt to run
turbo build
Observed Behavior
During installation:
npm verbose reify failed optional dependency C:\Projects\turbo2\my-turborepo\node_modules\turbo-windows-arm64
npm verbose reify failed optional dependency C:\Projects\turbo2\my-turborepo\node_modules\turbo-windows-64
[similar errors for linux/darwin platforms]
When running Turbo:
Turborepo did not find the correct binary for your platform (windows 64).
We were not able to find the binary at:
turbo-windows-64/bin/turbo.exe
Found unnecessary binaries for other platforms:
turbo-linux-64/bin/turbo
Expected Behavior
- TurboJS should install the correct Windows binary (
turbo-windows-64
) turbo build
should execute successfully without platform detection errors
Troubleshooting Attempted
- Clean reinstallation:
rd /s /q node_modules del package-lock.json npm cache clean --force npm install turbo --save-dev
- Verified working in WSL 2.0 with identical versions
- Checked all searched paths (listed in error) for binary presence
To Reproduce
Additional Observations
- The error suggests Turbo is looking for but not finding Windows binaries, while finding Linux binaries instead
- Works perfectly in WSL 2.0 environment with same Node/npm versions
- No Windows-specific installation caveats found in TurboJS documentation
Potential Root Causes
- Windows binary not being properly published/downloaded in npm package
- Platform detection issue in TurboJS's postinstall script
- PATH/environment variable interference on Windows
- Permission issues during binary installation
Support Questions
- Is Windows fully supported for TurboJS installations?
- Are there known issues with Windows 11 24H2 (build 26100)?
- Are there required Windows dependencies (like VC++ redistributable)?
Additional Helpful Information
- Does occur in both cmd.exe and PowerShell
- No antivirus interference detected
- User account has admin privileges
- Tried with both npm and yarn (same result)
Additional context
No response
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't workingneeds: triageNew issues get this label. Remove it after triageNew issues get this label. Remove it after triage