{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/861","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/861/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/861/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/861/events","html_url":"https://github.com/electron-userland/electron-builder/issues/861","id":186160678,"number":861,"title":"yarn install-app-deps fails when it detects npm's `--cache-min`","user":{"login":"amilajack","id":6374832,"avatar_url":"https://avatars.githubusercontent.com/u/6374832?v=3","gravatar_id":"","url":"https://api.github.com/users/amilajack","html_url":"https://github.com/amilajack","followers_url":"https://api.github.com/users/amilajack/followers","following_url":"https://api.github.com/users/amilajack/following{/other_user}","gists_url":"https://api.github.com/users/amilajack/gists{/gist_id}","starred_url":"https://api.github.com/users/amilajack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amilajack/subscriptions","organizations_url":"https://api.github.com/users/amilajack/orgs","repos_url":"https://api.github.com/users/amilajack/repos","events_url":"https://api.github.com/users/amilajack/events{/privacy}","received_events_url":"https://api.github.com/users/amilajack/received_events","type":"User","site_admin":false},"labels":[{"id":214243369,"url":"https://api.github.com/repos/electron-userland/electron-builder/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":302340963,"url":"https://api.github.com/repos/electron-userland/electron-builder/labels/pending%20because%20of%20dependency","name":"pending because of dependency","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-30T20:25:59Z","updated_at":"2016-11-09T07:57:55Z","closed_at":null,"body":"<!-- Which version of electron-builder are you using? -->\n\n**yarn version: 0.16.0, node 7.0.0**\n- **Version: latest**: \n\n<!-- What target are you building for? -->\n- **All: This is a cross-platform issue**: \n\n<!-- Enter your issue details below this comment. -->\n\n(I should note that I am installing with yarn) I think the issue is that `electron-builder` tries to find incorrect flags that were passed to it and its somehow validating flags from npm. I found that when running `install-app-deps` from npm scripts, the [--cache-min](https://docs.npmjs.com/misc/config#cache-min) option seems to be validated by `electron-builder`. Here's the stack trace:\n\n```\n    at ChildProcess.childProcess.once.code (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/src/util/util.ts:160:14)\n    at ChildProcess.g (events.js:291:16)\n    at emitTwo (events.js:106:13)\n    at ChildProcess.emit (events.js:191:7)\n    at maybeClose (internal/child_process.js:877:16)\n    at Socket.<anonymous> (internal/child_process.js:334:11)\n    at emitOne (events.js:96:13)\n    at Socket.emit (events.js:188:7)\n    at Pipe._handle.close [as _onclose] (net.js:501:12)\nFrom previous event:\n    at spawn (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/src/util/util.ts:123:3)\n    at spawnNpmProduction (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/src/util/util.ts:49:3)\n    at installDependencies (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/src/util/util.ts:20:122)\n    at /Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/src/install-app-deps.ts:31:2\n    at Generator.next (<anonymous>)\n    at runCallback (timers.js:637:20)\n    at tryOnImmediate (timers.js:610:5)\n    at processImmediate [as _immediateCallback] (timers.js:582:5)\nFrom previous event:\n    at main (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/out/install-app-deps.js:29:21)\n    at Object.<anonymous> (/Users/amila/Documents/Projects/builder-test/node_modules/electron-builder/out/install-app-deps.js:73:1)\n    at Module._compile (module.js:573:32)\n    at Object.Module._extensions..js (module.js:582:10)\n    at Module.load (module.js:490:32)\n    at tryModuleLoad (module.js:449:12)\n    at Function.Module._load (module.js:441:3)\n    at Module.runMain (module.js:607:10)\n    at run (bootstrap_node.js:382:7)\n    at startup (bootstrap_node.js:137:9)\n    at bootstrap_node.js:497:3\n```\n\nEverything seems to work fine when installing with `npm`\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/259353751","html_url":"https://github.com/electron-userland/electron-builder/issues/861#issuecomment-259353751","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/861","id":259353751,"user":{"login":"develar","id":350686,"avatar_url":"https://avatars.githubusercontent.com/u/350686?v=3","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T07:57:55Z","updated_at":"2016-11-09T07:57:55Z","body":"yarn will be supported as soon as https://github.com/yarnpkg/yarn/issues/1749 will be fixed."}}
{"actor":{"display_login":"develar"}}