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

Check for available disk space before updating package.json #6067

Open
hanxue opened this issue Jul 5, 2018 · 0 comments
Open

Check for available disk space before updating package.json #6067

hanxue opened this issue Jul 5, 2018 · 0 comments
Assignees
Labels

Comments

@hanxue
Copy link

hanxue commented Jul 5, 2018

What is the current behavior?

  1. Run a yarn command that modifies package.json, for example yarn remove cleave.js
  2. Disk out of space before yarn operation is complete

Resulting error

-bash: cannot create temp file for here document: No space left on device
yarn remove v1.6.0
[1/2] 🗑  Removing module cleave.js...
error Could not write file "/Users/hanxue/PPP/jinrong/yarn-error.log": "ENOSPC: no space left on device, write"
error An unexpected error occurred: "ENOSPC: no space left on device, write".

What is the expected behavior?

yarn should warn the user if there is no disk space available before performing any actions that modifies the filesystem

Please mention your node.js, yarn and operating system version.
Node: 9.11.1
Yarn: 1.6.0
macOS: 10.10.5

@ghost ghost assigned rally25rs Jul 5, 2018
@ghost ghost added the triaged label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants