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

Yarn/Yari doesn't work on Windows from update #37862

Closed
3 tasks done
hamishwillee opened this issue Jan 28, 2025 · 2 comments
Closed
3 tasks done

Yarn/Yari doesn't work on Windows from update #37862

hamishwillee opened this issue Jan 28, 2025 · 2 comments
Assignees
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@hamishwillee
Copy link
Collaborator

Summary

When I try run yarn start on windows, I get a 'printf' is not recognized as an internal error.

URL

Any

Reproduction steps

This follows yarn install update.

D:\github\mozilla\content>yarn install
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ node scripts/update-history.js
$ husky || true
Done in 0.72s.

D:\github\mozilla\content>yarn start
yarn run v1.22.22
$ yarn -s info:rari && yarn up-to-date-check && env-cmd --silent cross-env CONTENT_ROOT=files REACT_APP_DISABLE_AUTH=true BUILD_OUT_ROOT=build rari-server
'printf' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior

It works. Very painful.

Actual behavior

D:\github\mozilla\content>yarn start
yarn run v1.22.22
$ yarn -s info:rari && yarn up-to-date-check && env-cmd --silent cross-env CONTENT_ROOT=files REACT_APP_DISABLE_AUTH=true BUILD_OUT_ROOT=build rari-server
'printf' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Device

Desktop

Browser

Chrome

Browser version

Stable

Operating system

Android

Screenshot

No response

Anything else?

No response

Validations

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 28, 2025
@hamishwillee
Copy link
Collaborator Author

Just tried this in Ubuntu, and get this. So possibly printing this message is causing the problem?


ubuntu@ubuntu-virtual-machine:~/github/mdn/content$ yarn start
yarn run v1.22.22
$ yarn -s info:rari && yarn up-to-date-check && env-cmd --silent cross-env CONTENT_ROOT=files REACT_APP_DISABLE_AUTH=true BUILD_OUT_ROOT=build rari-server

🐥 This command is now using rari: https://github.com/mdn/rari
🐞 Please report any issues here: https://github.com/mdn/rari/issues/new?template=bug.yml

@caugner caugner self-assigned this Jan 29, 2025
@caugner caugner transferred this issue from mdn/yari Jan 29, 2025
@caugner
Copy link
Contributor

caugner commented Jan 29, 2025

Resolved via #37841.

@hamishwillee Can you try again with latest main?

@caugner caugner closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants