这是indexloc提供的服务,不要输入任何密码
Skip to content

TurboJS Installation Fails on Windows - Missing Binaries #10618

@ARAldhafeeri

Description

@ARAldhafeeri

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

  1. Fresh project setup on Windows
  2. Run npm install turbo --save-dev
  3. 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

  1. TurboJS should install the correct Windows binary (turbo-windows-64)
  2. turbo build should execute successfully without platform detection errors

Troubleshooting Attempted

  1. Clean reinstallation:
    rd /s /q node_modules
    del package-lock.json
    npm cache clean --force
    npm install turbo --save-dev
  2. Verified working in WSL 2.0 with identical versions
  3. 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

  1. Windows binary not being properly published/downloaded in npm package
  2. Platform detection issue in TurboJS's postinstall script
  3. PATH/environment variable interference on Windows
  4. Permission issues during binary installation

Support Questions

  1. Is Windows fully supported for TurboJS installations?
  2. Are there known issues with Windows 11 24H2 (build 26100)?
  3. 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

No one assigned

    Labels

    kind: bugSomething isn't workingneeds: triageNew issues get this label. Remove it after triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions