Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[turborepo] program not found error after upgrading to v1.9.4 #4940

Closed
XDoubleU opened this issue May 15, 2023 · 9 comments · Fixed by #5001
Closed

[turborepo] program not found error after upgrading to v1.9.4 #4940

XDoubleU opened this issue May 15, 2023 · 9 comments · Fixed by #5001
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage

Comments

@XDoubleU
Copy link

XDoubleU commented May 15, 2023

What version of Turborepo are you using?

1.9.4

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Windows

Describe the Bug

After upgrading to v1.9.4 I get a ‘program not found’ error when trying to run a script. I managed to pinpoint this error to canary v8.

Expected Behavior

I expect my scripts to run as in v1.9.3

To Reproduce

In below repo after running ‘yarn install’, run ‘yarn add -W turbo@1.9.4’ and run ‘yarn test’.

Reproduction Repo

https://github.com/XDoubleU/check-in

@XDoubleU XDoubleU added area: turborepo kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels May 15, 2023
@kefniark
Copy link

Getting the same error, monorepo script working until 1.9.3, and doesn't work inmodern versions.

$ yarn turbo run build
$ project\node_modules\.bin\turbo run build
Error: program not found
error Command failed with exit code 1.

On similar archi:

  • Yarn v1
  • OS: windows 11 64bit

@tripheo0412
Copy link

tripheo0412 commented May 16, 2023

Getting similar issue

yarn run build
yarn run v1.22.19
$ turbo run build --cache-dir=.turbo
Error: program not found
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Yarn v1
OS: Windows 11 64bit

Revert to v1.9.3 works

@bartyx1993
Copy link

Same issue on Win11 64bit after upgrading to 1.9.6.
Revert to the older version doesn't work for me.

@NicholasLYang
Copy link
Contributor

Hi @XDoubleU, thanks for opening an issue. Turns out this is an issue with how we detect package manager versions. We should have a fix up shortly!

NicholasLYang added a commit that referenced this issue May 17, 2023
### Description

Fixes #4940 by using `which` crate to resolve yarn binary. That way we
use the correct extension, i.e. `yarn.cmd` on Windows.


### Testing Instructions
Tested manually on Windows. Will add more integration tests

---------

Co-authored-by: --global <Nicholas Yang>
@gsoltis
Copy link
Contributor

gsoltis commented May 17, 2023

@bartyx1993 @kefniark @XDoubleU

Can you verify that turbo@1.9.7 is working for you?

@XDoubleU
Copy link
Author

Is working for me, thanks!

1 similar comment
@bartyx1993
Copy link

Is working for me, thanks!

@trandachuy2002
Copy link

Turborepo failed to start.

Turborepo detected that you are running:
windows ia32

@hollandz
Copy link

hollandz commented Jan 5, 2024

Turborepo failed to start.

Turborepo detected that you are running: windows ia32

Did you resolve this issue? I just ran into the same error.

node v18.17.1
turbo v1.10.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants