{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/761","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/761/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/761/events","html_url":"https://github.com/yarnpkg/yarn/issues/761","id":182394591,"number":761,"title":"`yarn install --production` doesn't install correct dependencies","user":{"login":"donovan-graham","id":1104135,"avatar_url":"https://avatars.githubusercontent.com/u/1104135?v=3","gravatar_id":"","url":"https://api.github.com/users/donovan-graham","html_url":"https://github.com/donovan-graham","followers_url":"https://api.github.com/users/donovan-graham/followers","following_url":"https://api.github.com/users/donovan-graham/following{/other_user}","gists_url":"https://api.github.com/users/donovan-graham/gists{/gist_id}","starred_url":"https://api.github.com/users/donovan-graham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donovan-graham/subscriptions","organizations_url":"https://api.github.com/users/donovan-graham/orgs","repos_url":"https://api.github.com/users/donovan-graham/repos","events_url":"https://api.github.com/users/donovan-graham/events{/privacy}","received_events_url":"https://api.github.com/users/donovan-graham/received_events","type":"User","site_admin":false},"labels":[{"id":313603437,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-10-11T22:52:27Z","updated_at":"2016-11-27T10:12:03Z","closed_at":null,"body":"When running `yarn install --production` it does not install the required dependencies of `forever`.  This seem to be related to having`nodemon` in `devDependencies`. \n\nError response:\n\n``` console\n> forever app.js\nmodule.js:457\n    throw err;\n    ^\nError: Cannot find module 'minimatch'\n```\n\nI've created a test application here:\nhttps://github.com/donovan-graham/yarn-example-app\n\n``` sh\n#  Steps to reproduce error\ngit clone https://github.com/donovan-graham/yarn-example-app.git\ncd yarn-example-app\nyarn install --production\nnpm start\n\n#  temporary step to bypass error\nrm -rf node_modules\nyarn remove nodemon\nyarn install --production\nnpm start\n```\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/263113708","html_url":"https://github.com/yarnpkg/yarn/issues/761#issuecomment-263113708","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/761","id":263113708,"user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T10:12:03Z","updated_at":"2016-11-27T10:12:03Z","body":"Opened up #2047 for the bug regarding node_modules, but it's a red herring in this issue, as my repro is still valid with a proper tarball published"}}
{"actor":{"display_login":"SimenB"}}