Pim-community-dev: Akeneo V4 install error - Yarn EACCES

Created on 24 Feb 2020  ·  6Comments  ·  Source: akeneo/pim-community-dev

I'm reporting a Bug

Running install of akeneo V4.
After composer successfully install deps I ran make dev and:

make dependencies
docker-compose run -u node --rm node yarn install
yarn install v1.21.1
error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/node/.yarn/v6'".
info If you think this is a bug, please open a bug report with the information provided in "/srv/pim/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Makefile:21: recipe for target 'node_modules' failed
make[1]: * [node_modules] Error 1
make[1]: Leaving directory '/*
/akeneo'
Makefile:65: recipe for target 'dev' failed
make: *
* [dev] Error 2

Docker Version
Docker version 19.03.6, build 369ce74a3c
Docker-Compose Version
docker-compose version 1.25.4, build 8d51620a

Most helpful comment

The .yarn folder is set up as a volume - by default using ~/.cache/yarn, or ${HOST_YARN_CACHE_FOLDER} if you've set it. Check the permissions on that folder.

All 6 comments

The .yarn folder is set up as a volume - by default using ~/.cache/yarn, or ${HOST_YARN_CACHE_FOLDER} if you've set it. Check the permissions on that folder.

@aligent-lturner I had the same issue. Changed the permissions of ~/.cache/yarn . Now it works. Thanks!

Hello, solved the issue with :z in the yarn cache folder(docker-compose.yaml):
'YARN_CACHE_FOLDER: '/home/node/.yarn:z

Thanks ;)

Thanks, running sudo chown ec2-user ~/.cache/yarn fixed it for me (ec2-user is the user running the command).

sudo chown ec2-user ~/.cache/yarn , I didn't understand what ec2-user , does not work for me

sudo chown ec2-user ~/.cache/yarn , I didn't understand what ec2-user , does not work for me

Because you have to set your user in this "command", to get your user just run the command id,.

Was this page helpful?
0 / 5 - 0 ratings