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

yarnConfigHook fails on Darwin, works on Linux if HOME is not writable #367586

Closed
FliegendeWurst opened this issue Dec 23, 2024 · 1 comment · Fixed by #367974
Closed

yarnConfigHook fails on Darwin, works on Linux if HOME is not writable #367586

FliegendeWurst opened this issue Dec 23, 2024 · 1 comment · Fixed by #367974
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: nodejs

Comments

@FliegendeWurst
Copy link
Member

Describe the bug

Error is:

Executing yarnConfigHook
yarn config v1.22.22
warning Skipping preferred cache folder "/tmp/home/Library/Caches/Yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/private/tmp/nix-build-yao-pkg-6.1.1.drv-0/.yarn-cache-352".
error Error: EACCES: permission denied, open '/tmp/home/.yarnrc'
info Visit https://yarnpkg.com/en/docs/cli/config for documentation about this command.

Steps To Reproduce

  1. Try to build e.g. yao-pkg: init at 6.1.1 #362297

I have seen this in lots of packages.

Expected behavior

Should just work.

Screenshots

Additional context

Metadata

Notify maintainers

none listed


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@FliegendeWurst FliegendeWurst added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Dec 23, 2024
@FliegendeWurst FliegendeWurst changed the title yarnConfigHook fails on Darwin, works on Linux if cache is not writable yarnConfigHook fails on Darwin, works on Linux if HOME is not writable Dec 23, 2024
@khaneliman
Copy link
Contributor

Have a few packages that I can't build right now due to this. Created a PR that resolved it for me locally if you want to test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: nodejs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants