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

Fix #2281: prevent hanging when cannot write yarn-error.log file #2328

Merged
merged 2 commits into from
Jan 2, 2017
Merged

Fix #2281: prevent hanging when cannot write yarn-error.log file #2328

merged 2 commits into from
Jan 2, 2017

Conversation

iredchuk
Copy link
Contributor

Fixes #2281 when yarn install command is hanging in case current user has no write permissions in the current folder.

$ mkdir test
$ chmod -w test
$ cd test
$ yarn add left-pad

Yarn should immediately exit with code 1 and error messages like those:

error Could not write file ".../yarn-error.log": "EACCES: permission denied, open '.../yarn-error.log'"
error An unexpected error occurred: "EACCES: permission denied, mkdir '.../test/node_modules'".

@bestander bestander merged commit cdfe06c into yarnpkg:master Jan 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants