{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1817","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1817/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1817/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1817/events","html_url":"https://github.com/yarnpkg/yarn/issues/1817","id":189184962,"number":1817,"title":"`yarn add grpc` throws error [0.17.0]","user":{"login":"rajatkumar","id":13667833,"avatar_url":"https://avatars.githubusercontent.com/u/13667833?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatkumar","html_url":"https://github.com/rajatkumar","followers_url":"https://api.github.com/users/rajatkumar/followers","following_url":"https://api.github.com/users/rajatkumar/following{/other_user}","gists_url":"https://api.github.com/users/rajatkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatkumar/subscriptions","organizations_url":"https://api.github.com/users/rajatkumar/orgs","repos_url":"https://api.github.com/users/rajatkumar/repos","events_url":"https://api.github.com/users/rajatkumar/events{/privacy}","received_events_url":"https://api.github.com/users/rajatkumar/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":1,"created_at":"2016-11-14T18:14:09Z","updated_at":"2016-11-15T02:42:07Z","closed_at":null,"body":"\r\nI get the following error:\r\n\r\n```\r\n$ yarn add grpc\r\nyarn add v0.17.0\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\n[1/4] ⠄ dtrace-provider\r\n[2/4] ⠄ dtrace-provider\r\n[3/4] ⠄ grpc\r\n[4/4] ⠄ grpc\r\nerror /apps/node_modules/grpc: Command failed.\r\nExit code: 127\r\nCommand: sh\r\n\r\nArguments: -c ./node_modules/.bin/node-pre-gyp install --fallback-to-build\r\nDirectory: /apps/node_modules/grpc\r\nOutput:\r\nsh: ./node_modules/.bin/node-pre-gyp: No such file or directory\r\n```\r\n\r\nSurprisingly this works with `npm install`\r\n\r\n<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\nnode --version\r\nv4.6.1\r\nnpm --version\r\n2.15.9\r\nyarn --version\r\n0.17.0\r\nOS:\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.5 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/260531222","html_url":"https://github.com/yarnpkg/yarn/issues/1817#issuecomment-260531222","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1817","id":260531222,"user":{"login":"jscinoz","id":850958,"avatar_url":"https://avatars.githubusercontent.com/u/850958?v=3","gravatar_id":"","url":"https://api.github.com/users/jscinoz","html_url":"https://github.com/jscinoz","followers_url":"https://api.github.com/users/jscinoz/followers","following_url":"https://api.github.com/users/jscinoz/following{/other_user}","gists_url":"https://api.github.com/users/jscinoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jscinoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscinoz/subscriptions","organizations_url":"https://api.github.com/users/jscinoz/orgs","repos_url":"https://api.github.com/users/jscinoz/repos","events_url":"https://api.github.com/users/jscinoz/events{/privacy}","received_events_url":"https://api.github.com/users/jscinoz/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T02:42:07Z","updated_at":"2016-11-15T02:42:07Z","body":"Oddly enough, if you run yarn add grpc again, it works from then on.\r\n\r\nRemoving ~/.cache/yarn will cause the issue to occur again the next time you try to run yarn add grpc.\r\n\r\nI suspect yarn might not be properly handling bundledDependencies on the first-run, as grpc includes node-pre-gyp by way of bundledDepdencies."}}
{"actor":{"display_login":"jscinoz"}}