It could be that you installed yarn as a sudo and ...
# e2e-testing
m
It could be that you installed yarn as a sudo and not as a normal user. And that is why you get this. What you could do is is if you have to use sudo is to also install cypress as sudo. sudo yarn run cypress install