Yarn EACCES: permission denied

Viewed 2457

I have a workspace setup and ever sense I keep getting permission issues with yarn:

error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/code/client/node_modules/cacache/node_modules/mkdirp'".

The only solution I have is to delete node_modules on all packages which are part of my workspace, which gets annoying.

Then I run yarn install again and everything is fine. Next day I'll come back and face the same issue.

I also have to use sudo to delete node_modules which is strange.

0 Answers
Related