yarn can't global add pack in home folder

Created on 10 Dec 2016  ·  4Comments  ·  Source: yarnpkg/yarn

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.

problem image

Most helpful comment

@nodece

https://github.com/yarnpkg/yarn/issues/2108 walks through how to do this

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings