{"action":"closed","issue":{"url":"https://api.github.com/repos/bower/bower/issues/2022","labels_url":"https://api.github.com/repos/bower/bower/issues/2022/labels{/name}","comments_url":"https://api.github.com/repos/bower/bower/issues/2022/comments","events_url":"https://api.github.com/repos/bower/bower/issues/2022/events","html_url":"https://github.com/bower/bower/issues/2022","id":117589178,"number":2022,"title":"Bower crashes if .bowerrc is a directory","user":{"login":"Wilfred","id":70800,"avatar_url":"https://avatars.githubusercontent.com/u/70800?v=3","gravatar_id":"","url":"https://api.github.com/users/Wilfred","html_url":"https://github.com/Wilfred","followers_url":"https://api.github.com/users/Wilfred/followers","following_url":"https://api.github.com/users/Wilfred/following{/other_user}","gists_url":"https://api.github.com/users/Wilfred/gists{/gist_id}","starred_url":"https://api.github.com/users/Wilfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wilfred/subscriptions","organizations_url":"https://api.github.com/users/Wilfred/orgs","repos_url":"https://api.github.com/users/Wilfred/repos","events_url":"https://api.github.com/users/Wilfred/events{/privacy}","received_events_url":"https://api.github.com/users/Wilfred/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bower/bower/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/bower/bower/labels/help%20wanted","name":"help wanted","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-18T13:41:38Z","updated_at":"2015-11-19T17:17:25Z","closed_at":"2015-11-19T17:17:25Z","body":"Whilst users probably shouldn't be creating .bowerrc directories, it would be helpful if bower showed a friendly error.\r\n\r\n```\r\n$ mkdir .bowerrc\r\n$ bower install jquery\r\n\r\nfs.js:481\r\n  var r = binding.read(fd, buffer, offset, length, position);\r\n                  ^\r\nError: EISDIR, illegal operation on a directory\r\n    at Object.fs.readSync (fs.js:481:19)\r\n    at Object.fs.readFileSync (fs.js:315:28)\r\n    at /users/is/whughes/node_modules/bower/node_modules/bower-config/lib/util/rc.js:87:27\r\n    at Array.forEach (native)\r\n    at json (/users/is/whughes/node_modules/bower/node_modules/bower-config/lib/util/rc.js:86:14)\r\n    at rc (/users/is/whughes/node_modules/bower/node_modules/bower-config/lib/util/rc.js:31:13)\r\n    at Config.load (/users/is/whughes/node_modules/bower/node_modules/bower-config/lib/Config.js:16:20)\r\n    at readCachedConfig (/users/is/whughes/node_modules/bower/lib/config.js:15:39)\r\n    at defaultConfig (/users/is/whughes/node_modules/bower/lib/config.js:11:12)\r\n    at Object.<anonymous> (/users/is/whughes/node_modules/bower/lib/index.js:40:32)\r\n```"}}