{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1407","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1407/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1407/events","html_url":"https://github.com/yarnpkg/yarn/issues/1407","id":184933736,"number":1407,"title":"`yarn global add mocha` on Windows 10 x64 Professional fails","user":{"login":"CalmBit","id":1005025,"avatar_url":"https://avatars.githubusercontent.com/u/1005025?v=3","gravatar_id":"","url":"https://api.github.com/users/CalmBit","html_url":"https://github.com/CalmBit","followers_url":"https://api.github.com/users/CalmBit/followers","following_url":"https://api.github.com/users/CalmBit/following{/other_user}","gists_url":"https://api.github.com/users/CalmBit/gists{/gist_id}","starred_url":"https://api.github.com/users/CalmBit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalmBit/subscriptions","organizations_url":"https://api.github.com/users/CalmBit/orgs","repos_url":"https://api.github.com/users/CalmBit/repos","events_url":"https://api.github.com/users/CalmBit/events{/privacy}","received_events_url":"https://api.github.com/users/CalmBit/received_events","type":"User","site_admin":false},"labels":[{"id":461730541,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/needs%20triage","name":"needs triage","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T19:34:43Z","updated_at":"2016-10-30T20:21:49Z","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\n\r\nBug.\r\n\r\n**What is the current behavior?**\r\n\r\nYarn gets through most of the install process for a global package, `mocha`, until it errors out:\r\n```\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\nsuccess: Installed mocha@3.1.2 with binaries:\r\n    - mocha\r\n    - _mocha\r\nerror: An unexpected error occurred, please open a bug report... [snipped]\r\n```\r\n`yarn-error.log` has the following error message inside of it:\r\n```\r\nTrace: \r\n  Error: EPERM: operation not permitted, open 'C:\\Program Files\\nodejs\\mocha'\r\n      at Error (native)\r\n```\r\nAfter this, it will concede the same \"installation success\" message as before, without an error, but the binary doesn't seem to be installed or accessible.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n1. Install Yarn from the .msi installer (with Node.JS + NPM present)\r\n2. `yarn global add mocha`\r\n\r\n**What is the expected behavior?**\r\n\r\nInstallation of `mocha` binary globally.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nWindows 10, x64 \"Professional\", yarn v.0.16.0, Node.JS v.6.4.0"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/257176334","html_url":"https://github.com/yarnpkg/yarn/issues/1407#issuecomment-257176334","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1407","id":257176334,"user":{"login":"CalmBit","id":1005025,"avatar_url":"https://avatars.githubusercontent.com/u/1005025?v=3","gravatar_id":"","url":"https://api.github.com/users/CalmBit","html_url":"https://github.com/CalmBit","followers_url":"https://api.github.com/users/CalmBit/followers","following_url":"https://api.github.com/users/CalmBit/following{/other_user}","gists_url":"https://api.github.com/users/CalmBit/gists{/gist_id}","starred_url":"https://api.github.com/users/CalmBit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalmBit/subscriptions","organizations_url":"https://api.github.com/users/CalmBit/orgs","repos_url":"https://api.github.com/users/CalmBit/repos","events_url":"https://api.github.com/users/CalmBit/events{/privacy}","received_events_url":"https://api.github.com/users/CalmBit/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T20:21:49Z","updated_at":"2016-10-30T20:21:49Z","body":"They are indeed installed into that path for me! Thanks for the pointer!"}}
{"actor":{"display_login":"CalmBit"}}