{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3825","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3825/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3825/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3825/events","html_url":"https://github.com/yarnpkg/yarn/issues/3825","id":240524230,"number":3825,"title":"Cannot read property 'config' of undefined\".","user":{"login":"crashbell","id":810139,"avatar_url":"https://avatars3.githubusercontent.com/u/810139?v=4","gravatar_id":"","url":"https://api.github.com/users/crashbell","html_url":"https://github.com/crashbell","followers_url":"https://api.github.com/users/crashbell/followers","following_url":"https://api.github.com/users/crashbell/following{/other_user}","gists_url":"https://api.github.com/users/crashbell/gists{/gist_id}","starred_url":"https://api.github.com/users/crashbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashbell/subscriptions","organizations_url":"https://api.github.com/users/crashbell/orgs","repos_url":"https://api.github.com/users/crashbell/repos","events_url":"https://api.github.com/users/crashbell/events{/privacy}","received_events_url":"https://api.github.com/users/crashbell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-05T02:37:26Z","updated_at":"2017-08-04T03:01:36Z","closed_at":"2017-07-05T08:01:19Z","body":"<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\nLatest version: 0.27.5\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nA Bug\r\n\r\n**What is the current behavior?**\r\nInstall dependencies with command `rm -rf node_modules && yarn`\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nThe installation failed with error: node_modules/flow-bin: Cannot read property 'config' of undefined\".\r\nIn the verbose mode, I got this stack trace: \r\n```\r\nverbose 23.71 TypeError: /Users/project/node_modules/flow-bin: Cannot read property 'config' of undefined\r\n    at /usr/local/Cellar/yarn/0.27.5/libexec/lib/yarn-cli.js:34601:185\r\n    at Generator.next (<anonymous>)\r\n    at step (/usr/local/Cellar/yarn/0.27.5/libexec/lib/yarn-cli.js:91:30)\r\n    at /usr/local/Cellar/yarn/0.27.5/libexec/lib/yarn-cli.js:102:13\r\n    at <anonymous>\r\n```\r\n\r\nI tried to print out the `config` value and got this:\r\n```js\r\nConfig {\r\n  constraintResolver: PackageConstraintResolver { reporter: undefined, config: [Circular] },\r\n  requestManager:\r\n   RequestManager {\r\n     offlineNoRequests: false,\r\n     _requestCaptureHar: null,\r\n     _requestModule: null,\r\n     offlineQueue: [],\r\n     captureHar: false,\r\n     httpsProxy: '',\r\n     ca: null,\r\n     httpProxy: '',\r\n     strictSSL: true,\r\n     userAgent: 'yarn/0.27.5 npm/? node/v8.1.3 darwin x64',\r\n     reporter: undefined,\r\n     running: 0,\r\n     queue: [],\r\n     cache: {},\r\n     max: 8,\r\n     maxRetryAttempts: 5,\r\n     timeout: 30000,\r\n     cert: '',\r\n     key: '' },\r\n  reporter: undefined,\r\n  rootModuleFolders: [],\r\n  registryFolders: [],\r\n  linkedModules: [],\r\n  registries: {},\r\n  cache: {},\r\n  cwd: '/Users/anlpnguyen/.config/yarn/global',\r\n  looseSemver: true,\r\n  commandName: '',\r\n  preferOffline: false,\r\n  modulesFolder: undefined,\r\n  globalFolder: '/Users/anlpnguyen/.config/yarn/global',\r\n  linkFolder: '/Users/anlpnguyen/.config/yarn/link',\r\n  offline: false,\r\n  binLinks: true,\r\n  ignorePlatform: false,\r\n  ignoreScripts: false,\r\n  disablePrepublish: false,\r\n  nonInteractive: false,\r\n  workspaceRootFolder: null,\r\n  lockfileFolder: '/Users/project',\r\n  networkConcurrency: 8,\r\n  childConcurrency: 5,\r\n  networkTimeout: 30000,\r\n  _cacheRootFolder: '/Users/anlpnguyen/Library/Caches/Yarn',\r\n  workspacesEnabled: false,\r\n  pruneOfflineMirror: false,\r\n  enableMetaFolder: false,\r\n  enableLockfileVersions: false,\r\n  linkFileDependencies: false,\r\n  cacheFolder: '/Users/anlpnguyen/Library/Caches/Yarn/v1',\r\n  tempFolder: '/Users/anlpnguyen/Library/Caches/Yarn/v1/.tmp',\r\n  production: false }\r\n```\r\n**What is the expected behavior?**\r\nInstallation should work without error.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nNode: v8.1.3\r\nMac OSX: 10.12.5 (16F73)\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/320143849","html_url":"https://github.com/yarnpkg/yarn/issues/3825#issuecomment-320143849","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3825","id":320143849,"user":{"login":"baotn166","id":12005413,"avatar_url":"https://avatars0.githubusercontent.com/u/12005413?v=4","gravatar_id":"","url":"https://api.github.com/users/baotn166","html_url":"https://github.com/baotn166","followers_url":"https://api.github.com/users/baotn166/followers","following_url":"https://api.github.com/users/baotn166/following{/other_user}","gists_url":"https://api.github.com/users/baotn166/gists{/gist_id}","starred_url":"https://api.github.com/users/baotn166/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baotn166/subscriptions","organizations_url":"https://api.github.com/users/baotn166/orgs","repos_url":"https://api.github.com/users/baotn166/repos","events_url":"https://api.github.com/users/baotn166/events{/privacy}","received_events_url":"https://api.github.com/users/baotn166/received_events","type":"User","site_admin":false},"created_at":"2017-08-04T03:01:36Z","updated_at":"2017-08-04T03:01:36Z","body":"That works for me, thank you."}}
{"actor":{"display_login":"baotn166"}}