Yarn install fails `can't satisfy the dependency graph`

build.log (108.2 KB)

I have already gone through these topics but it didn't fix the build - Error running `yarn install` - #12 by personalizedrefriger
Yarn install fails at root@workspace:

macbook@MacBooks-MacBook-Pro joplin % yarn --version
3.8.3
macbook@MacBooks-MacBook-Pro joplin % node --version
v20.18.0
macbook@MacBooks-MacBook-Pro joplin % git --version
git version 2.44.0

Based on the log, npm (which is used to build built-in plugins) might not have access to /Users/macbook/.npm/_cacache:

➤ YN0000: [@joplin/app-desktop]: npm error EACCES: permission denied, rename '/Users/macbook/.npm/_cacache/tmp/eb1fcfc2' -> '/Users/macbook/.npm/_cacache/content-v2/sha512/77/35/bd907c47d35d6e06c89d4d7775e095e0cf27bf60b6f62f378a6786ec825fca9f0c7c02d6d2164906c5a81d34ea21d0396a1c299f8848d62816aa8ce6a757'

Running stat /Users/macbook/.npm/_cacache might give more information — it should list which user owns _cacache and the permissions of other users.

1 Like

after giving the permission
and doing sudo yarn install it fix the problem
thank you

I suggest against building with sudo (the extra permissions shouldn't be necessary to build Joplin).

See:

1 Like