env:
Ubuntu 16.04
node 7.0
yarn 0.17.10
problem:
when i exec yarn global add packname,hava a error error We don't have permissions to touch the file "/usr/bin/eslint"., if i exec yarn global add packname,This is possible。but i no hope ,But I don't want to use that. This will cause other anomalies。I hope there is a good way to solve the problem.

Sorry, I didn't understand what you are trying to say 😞
i no hope use sudo yarn , i hope use yarn.
@nodece
https://github.com/yarnpkg/yarn/issues/2108 walks through how to do this
@jamon very good , thanks
Most helpful comment
@nodece
https://github.com/yarnpkg/yarn/issues/2108 walks through how to do this