Mindaugas
Mindaugas

Reputation: 415

yarn install: EACCES: permission denied, unlink yarn integrity

yarn install throws:

EACCES: permission denied, unlink '/home/minnak/Darbas/market/node_modules/.yarn-integrity'

Might be related to this issue

I tried checking for permissions:

ls -la /home/minnak/Darbas/market/node_modules/.yarn*

Output: -rw-r--r-- 1 root root 490276 kov. 13 15:10 /home/minnak/Darbas/market/node_modules/.yarn-integrity

and then:

sudo chown -R minnak /home/minnak/.config/yarn/

Then launch yarn install again and get the same error.

Upvotes: 23

Views: 51612

Answers (1)

Matas
Matas

Reputation: 314

Try running sudo rm -rf /home/minnak/Darbas/market/node_modules/ and then yarn without elevated permissions.

Upvotes: 28

Related Questions