{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1725","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1725/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1725/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1725/events","html_url":"https://github.com/yarnpkg/yarn/issues/1725","id":187894335,"number":1725,"title":"ENOENT error when using `github:` dependency","user":{"login":"skevy","id":131916,"avatar_url":"https://avatars.githubusercontent.com/u/131916?v=3","gravatar_id":"","url":"https://api.github.com/users/skevy","html_url":"https://github.com/skevy","followers_url":"https://api.github.com/users/skevy/followers","following_url":"https://api.github.com/users/skevy/following{/other_user}","gists_url":"https://api.github.com/users/skevy/gists{/gist_id}","starred_url":"https://api.github.com/users/skevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skevy/subscriptions","organizations_url":"https://api.github.com/users/skevy/orgs","repos_url":"https://api.github.com/users/skevy/repos","events_url":"https://api.github.com/users/skevy/events{/privacy}","received_events_url":"https://api.github.com/users/skevy/received_events","type":"User","site_admin":false},"labels":[{"id":461730541,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/needs%20triage","name":"needs triage","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-08T03:41:39Z","updated_at":"2016-11-15T16:42:38Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nBug\r\n\r\n**What is the current behavior?**\r\n\r\nWhen package.json contains a dep that takes the form:\r\n\r\n```\"aPackage\": \"github:user/repo#branch\"```,\r\n\r\nwe get an error that looks like:\r\n\r\n```yarn install v0.17.0-0-exp\r\ninfo No lockfile found.\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\n[3/4] 🔗  Linking dependencies...\r\nerror An unexpected error occurred: \"ENOENT: no such file or directory, lstat '/Users/Jesse/Library/Caches/Yarn/npm-react-native-0.36.0-48d071deb7401c49eace9b4caf3924f8def9d093'\".\r\ninfo If you think this is a bug, please open a bug report with the information provided in \"/Users/Jesse/Exponent/newuniverse/universe/apps/native-component-list/yarn-error.log\".\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\nUsing this package.json file, and with a `yarn-offline-mirror` set in your npmrc, run \"yarn\":\r\n\r\n```{\r\n  \"name\": \"test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react-native\": \"github:facebook/react-native#master\"\r\n  },\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\"\r\n}\r\n```\r\n\r\nNotice ENOENT error.\r\n\r\nIf you change the package.json to:\r\n\r\n```{\r\n  \"name\": \"test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react-native\": \"git+https://github.com/facebook/react-native#master\"\r\n  },\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\"\r\n}\r\n```\r\n\r\nand run `yarn`, everything works correctly.\r\n\r\n**What is the expected behavior?**\r\n\r\nIt should not error.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nNode v6.9.1\r\nYarn @ https://github.com/yarnpkg/yarn/commit/f97c5b5cdac16c691a0dec08ef495ef5e0289e0f\r\nmacOS 10.12.1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/260694958","html_url":"https://github.com/yarnpkg/yarn/issues/1725#issuecomment-260694958","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1725","id":260694958,"user":{"login":"markstos","id":25829,"avatar_url":"https://avatars.githubusercontent.com/u/25829?v=3","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T16:42:38Z","updated_at":"2016-11-15T16:42:38Z","body":"I confirmed this issue exists in the 0.17.0 release. I can also confirm that the workaround of using the format of \"git+https://github.com/facebook/react-native#master\" appears to work. "}}
{"actor":{"display_login":"markstos"}}