{"action":"opened","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/987","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/987/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/987/events","html_url":"https://github.com/yarnpkg/yarn/issues/987","id":182750534,"number":987,"title":"Cannot find module 'stringstream'","user":{"login":"reflexdemon","id":4246853,"avatar_url":"https://avatars.githubusercontent.com/u/4246853?v=3","gravatar_id":"","url":"https://api.github.com/users/reflexdemon","html_url":"https://github.com/reflexdemon","followers_url":"https://api.github.com/users/reflexdemon/followers","following_url":"https://api.github.com/users/reflexdemon/following{/other_user}","gists_url":"https://api.github.com/users/reflexdemon/gists{/gist_id}","starred_url":"https://api.github.com/users/reflexdemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reflexdemon/subscriptions","organizations_url":"https://api.github.com/users/reflexdemon/orgs","repos_url":"https://api.github.com/users/reflexdemon/repos","events_url":"https://api.github.com/users/reflexdemon/events{/privacy}","received_events_url":"https://api.github.com/users/reflexdemon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T10:18:32Z","updated_at":"2016-10-13T10:18:32Z","closed_at":null,"body":"<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n**What is the current behavior?**\r\nWhile install phantomjs there is a delay and fails with error : Cannot find module 'stringstream'\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nI am using this package.json https://github.com/reflexdemon/ng-gulp/blob/master/package.json\r\nWhile trying to delete the node_modules folder and try to do the `yarn install` I get the following issue\r\n```\r\n$ yarn install\r\nyarn install v0.15.1\r\nwarning ng-gulp@0.1.0: Dependency \"url\" listed in \"devDependencies\" is the name of a built-in module\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\nwarning lodash@2.4.2: The engine \"rhino\" appears to be invalid.\r\nwarning lodash@1.0.2: The engine \"rhino\" appears to be invalid.\r\n[3/4] 🔗  Linking dependencies...\r\nwarning Unmet peer dependency \"chai@*\".\r\nwarning Unmet peer dependency \"mocha@*\".\r\n[4/4] 📃  Building fresh packages...\r\n[1/2] ⠐ ws\r\n[2/2] ⠐ phantomjs\r\n[-/2] ⠐ waiting...\r\n[-/2] ⠐ waiting...\r\nerror /Users/loginuser/Development/Workspace/local/ng-gulp/node_modules/phantomjs: Command failed.\r\nExit code: 1\r\nCommand: sh\r\nArguments: -c node install.js\r\nDirectory: /Users/loginuser/Development/Workspace/local/ng-gulp/node_modules/phantomjs\r\nOutput:\r\nmodule.js:457\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'stringstream'\r\n    at Function.Module._resolveFilename (module.js:455:15)\r\n    at Function.Module._load (module.js:403:25)\r\n    at Module.require (module.js:483:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (/Users/loginuser/Development/Workspace/local/ng-gulp/node_modules/phantomjs/node_modules/request/request.js:14:20)\r\n    at Module._compile (module.js:556:32)\r\n    at Object.Module._extensions..js (module.js:565:10)\r\n    at Module.load (module.js:473:32)\r\n    at tryModuleLoad (module.js:432:12)\r\n    at Function.Module._load (module.js:424:3)\r\n    at SpawnError (/Users/loginuser/.yarn/lib/errors.js:18:1)\r\n    at ChildProcess.proc.on.code (/Users/loginuser/.yarn/lib/util/child.js:107:15)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at maybeClose (internal/child_process.js:877:16)\r\n    at Socket.<anonymous> (internal/child_process.js:334:11)\r\n    at emitOne (events.js:96:13)\r\n    at Socket.emit (events.js:188:7)\r\n    at Pipe._handle.close [as _onclose] (net.js:493:12)\r\ninfo Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n```\r\n**What is the expected behavior?**\r\nI see errors only on the first run. To my surprise while trying to run `yarn install` for the second time it completes successfully. This looks like a caching issue on the yarn that needs to be checked.\r\n\r\n```\r\n$ yarn install\r\nyarn install v0.15.1\r\nwarning ng-gulp@0.1.0: Dependency \"url\" listed in \"devDependencies\" is the name of a built-in module\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\nwarning lodash@2.4.2: The engine \"rhino\" appears to be invalid.\r\nwarning lodash@1.0.2: The engine \"rhino\" appears to be invalid.\r\n[3/4] 🔗  Linking dependencies...\r\nwarning Unmet peer dependency \"chai@*\".\r\nwarning Unmet peer dependency \"mocha@*\".\r\n[4/4] 📃  Building fresh packages...\r\nsuccess Saved lockfile.\r\n✨  Done in 4.03s.\r\n```\r\n**Please mention your node.js, yarn and operating system version.**\r\n```\r\n$ node -v\r\nv6.5.0\r\n```\r\n```\r\n$ npm -v\r\n3.10.3\r\n```\r\n```\r\n$ yarn -v\r\nyarn install v0.15.1\r\nwarning ng-gulp@0.1.0: Dependency \"url\" listed in \"devDependencies\" is the name of a built-in module\r\nsuccess Already up-to-date.\r\n✨  Done in 0.12s.\r\n```\r\n```\r\nSystem Version: OS X 10.10.5 (14F27)\r\nKernel Version: Darwin 14.5.0\r\n```"}}
{"actor":{"display_login":"reflexdemon"}}