Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Permissions Installing Global Packages #4365

Closed
carloabelli opened this issue Sep 8, 2017 · 1 comment
Closed

Incorrect Permissions Installing Global Packages #4365

carloabelli opened this issue Sep 8, 2017 · 1 comment

Comments

@carloabelli
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
When installing a global package, the symlinks are created from /usr/local/bin to /root/.config/yarn/node_packages/... however the permissions are incorrect and attempting to run the commands results in permission denied.

If the current behavior is a bug, please provide the steps to reproduce.
Install a package e.g. create-react-app:

$ sudo yarn global add create-react-app
$ create-react-app
permission denied: create-react-app

What is the expected behavior?
That create-react-app runs and does not have a permissions error.

Please mention your node.js, yarn and operating system version.

$ node --version
v8.4.0
$ yarn --version
1.0.1
$ uname -a
Linux arch 4.13.0-1-hardened #1 SMP PREEMPT Sun Sep 3 22:23:13 EDT 2017 x86_64 GNU/Linux

Other notes
Strangely this error does not happen to me when uninstalling and reinstalling http-server, though perhaps that is because I installed it before some change in how yarn handles permissions.

@Ghoughpteighbteau
Copy link

Hit this as well, but I think this is a duplicate? #1060

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants