-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
No read permission for group and others in a package yarn installed #1143
Labels
Comments
Duplicate of #961 |
Same here after installing pm2 (which also has
This makes running pm2 as a non-root user impossible:
Environment: |
Easy commands to reproduce:
Full transcript:
|
same error 19:46:27 building docker image...
19:46:27 docker build -t suggestion:0.0.19 .
19:46:27 Error checking context: 'no permission to read from '/var/lib/jenkins/workspace/squarefoot-core/capi-squarefoot-suggestions/node_modules/arr-diff/LICENSE''.
19:46:27 Build step 'Execute shell' marked build as failure |
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
It's bug.
What is the current behavior?
The file permissions are different when installing the same package using yarn and npm. The one yarn installed only has '700' for permission, which causes an EACCES error when running node with another user.
If the current behavior is a bug, please provide the steps to reproduce.
Try this package.json:
Run
yarn install
andls -lha node_modules/arr-flatten
:Let me remote
node_modules
then runnpm install
, file permissions are 744 rather than 700.What is the expected behavior?
The read permission should be added to dependencies.
Please mention your node.js, yarn and operating system version.
node 6.2.2
yarn 0.15.1
macOS 10.12
The text was updated successfully, but these errors were encountered: