{"action":"opened","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/6067","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/6067/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/6067/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/6067/events","html_url":"https://github.com/yarnpkg/yarn/issues/6067","id":338741128,"node_id":"MDU6SXNzdWUzMzg3NDExMjg=","number":6067,"title":"Check for available disk space before updating package.json","user":{"login":"hanxue","id":760008,"node_id":"MDQ6VXNlcjc2MDAwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/760008?v=4","gravatar_id":"","url":"https://api.github.com/users/hanxue","html_url":"https://github.com/hanxue","followers_url":"https://api.github.com/users/hanxue/followers","following_url":"https://api.github.com/users/hanxue/following{/other_user}","gists_url":"https://api.github.com/users/hanxue/gists{/gist_id}","starred_url":"https://api.github.com/users/hanxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanxue/subscriptions","organizations_url":"https://api.github.com/users/hanxue/orgs","repos_url":"https://api.github.com/users/hanxue/repos","events_url":"https://api.github.com/users/hanxue/events{/privacy}","received_events_url":"https://api.github.com/users/hanxue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T22:05:55Z","updated_at":"2018-07-05T22:05:55Z","closed_at":null,"author_association":"NONE","body":"**What is the current behavior?**\r\n\r\n1. Run a yarn command that modifies `package.json`, for example `yarn remove cleave.js`\r\n2. Disk out of space before yarn operation is complete\r\n\r\nResulting error\r\n\r\n```\r\n-bash: cannot create temp file for here document: No space left on device\r\nyarn remove v1.6.0\r\n[1/2] 🗑  Removing module cleave.js...\r\nerror Could not write file \"/Users/hanxue/PPP/jinrong/yarn-error.log\": \"ENOSPC: no space left on device, write\"\r\nerror An unexpected error occurred: \"ENOSPC: no space left on device, write\".\r\n```\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\n`yarn` should warn the user if there is no disk space available before performing any actions that modifies the filesystem\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nNode: 9.11.1\r\nYarn: 1.6.0\r\nmacOS: 10.10.5\r\n"}}
{"actor":{"display_login":"hanxue"}}