{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2142","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2142/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2142/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2142/events","html_url":"https://github.com/yarnpkg/yarn/issues/2142","id":193361434,"number":2142,"title":"v0.18.0 postinstall missing dependencies","user":{"login":"daltones","id":5603632,"avatar_url":"https://avatars.githubusercontent.com/u/5603632?v=3","gravatar_id":"","url":"https://api.github.com/users/daltones","html_url":"https://github.com/daltones","followers_url":"https://api.github.com/users/daltones/followers","following_url":"https://api.github.com/users/daltones/following{/other_user}","gists_url":"https://api.github.com/users/daltones/gists{/gist_id}","starred_url":"https://api.github.com/users/daltones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daltones/subscriptions","organizations_url":"https://api.github.com/users/daltones/orgs","repos_url":"https://api.github.com/users/daltones/repos","events_url":"https://api.github.com/users/daltones/events{/privacy}","received_events_url":"https://api.github.com/users/daltones/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-12-04T16:55:52Z","updated_at":"2016-12-05T22:46:02Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\nI think some dependencies are missing at the time when `postinstall` scripts are ran.\r\n\r\nI'm having this error:\r\n```\r\nyarn install v0.18.0\r\ninfo No lockfile found.\r\nwarning test: No license field\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\nwarning fsevents@1.0.15: The platform \"linux\" is incompatible with this module.\r\ninfo \"fsevents@1.0.15\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\n[1/3] ⠐ gifsicle\r\n[2/3] ⠐ jpegtran-bin\r\n[3/3] ⠐ optipng-bin\r\n[-/3] ⠐ waiting...\r\nerror [my-project]/node_modules/jpegtran-bin: Command failed.\r\nExit code: 1\r\nCommand: sh\r\nArguments: -c node lib/install.js\r\nDirectory: [my-project]/node_modules/jpegtran-bin\r\nOutput:\r\nmodule.js:472\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'ini'\r\n    at Function.Module._resolveFilename (module.js:470:15)\r\n    at Function.Module._load (module.js:418:25)\r\n    at Module.require (module.js:498:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> ([my-project]/node_modules/rc/lib/utils.js:3:12)\r\n    at Module._compile (module.js:571:32)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:488:32)\r\n    at tryModuleLoad (module.js:447:12)\r\n    at Function.Module._load (module.js:439:3)\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n```\r\n\r\nIn another project, after a `yarn upgrade` I also encountered this problem with other packages (`gifsicle`'s `postinstall` missing `deep-extend`). So it seems like a general problem.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nGiven this `package.json`:\r\n```json\r\n{\r\n  \"name\": \"test\",\r\n  \"devDependencies\": {\r\n    \"babel-cli\": \"^6.18.0\",\r\n    \"gulp-imagemin\": \"^3.1.1\"\r\n  }\r\n}\r\n```\r\nRun `yarn install`.\r\n\r\nI noticed that if I try to install only one of these two, it will work. I guess that's an issue with shared dependencies between them.\r\n\r\n**What is the expected behavior?**\r\nInstallation completes successful.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nnode.js: v7.2.0\r\nyarn: v0.18.0\r\nOS: Arch Linux"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/265002683","html_url":"https://github.com/yarnpkg/yarn/issues/2142#issuecomment-265002683","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2142","id":265002683,"user":{"login":"olingern","id":1470297,"avatar_url":"https://avatars.githubusercontent.com/u/1470297?v=3","gravatar_id":"","url":"https://api.github.com/users/olingern","html_url":"https://github.com/olingern","followers_url":"https://api.github.com/users/olingern/followers","following_url":"https://api.github.com/users/olingern/following{/other_user}","gists_url":"https://api.github.com/users/olingern/gists{/gist_id}","starred_url":"https://api.github.com/users/olingern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olingern/subscriptions","organizations_url":"https://api.github.com/users/olingern/orgs","repos_url":"https://api.github.com/users/olingern/repos","events_url":"https://api.github.com/users/olingern/events{/privacy}","received_events_url":"https://api.github.com/users/olingern/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T22:46:02Z","updated_at":"2016-12-05T22:46:02Z","body":"@mvestergaard You can attach to a process with [vscode](https://github.com/Microsoft/vscode) or debug using [node-inspector](https://github.com/node-inspector/node-inspector)"}}
{"actor":{"display_login":"olingern"}}