{"action":"created","issue":{"url":"https://api.github.com/repos/bower/bower/issues/1950","labels_url":"https://api.github.com/repos/bower/bower/issues/1950/labels{/name}","comments_url":"https://api.github.com/repos/bower/bower/issues/1950/comments","events_url":"https://api.github.com/repos/bower/bower/issues/1950/events","html_url":"https://github.com/bower/bower/issues/1950","id":111683209,"number":1950,"title":"v1.6.2 .bowerrc registry.register.replace undefined ","user":{"login":"anwalkers","id":3085122,"avatar_url":"https://avatars.githubusercontent.com/u/3085122?v=3","gravatar_id":"","url":"https://api.github.com/users/anwalkers","html_url":"https://github.com/anwalkers","followers_url":"https://api.github.com/users/anwalkers/followers","following_url":"https://api.github.com/users/anwalkers/following{/other_user}","gists_url":"https://api.github.com/users/anwalkers/gists{/gist_id}","starred_url":"https://api.github.com/users/anwalkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anwalkers/subscriptions","organizations_url":"https://api.github.com/users/anwalkers/orgs","repos_url":"https://api.github.com/users/anwalkers/repos","events_url":"https://api.github.com/users/anwalkers/events{/privacy}","received_events_url":"https://api.github.com/users/anwalkers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-15T18:52:20Z","updated_at":"2015-10-16T09:53:46Z","closed_at":"2015-10-16T09:37:45Z","body":"If the .bowerrc has the registry configuration element, bower fails on Windows.\r\n\r\n<pre><code>$ bower\r\nC:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\node_modules\\bower-config\\lib\\Config.js:96\r\n    config.registry.register = config.registry.register.replace(/\\/+$/, '');\r\n                                                       ^\r\n\r\nTypeError: Cannot read property 'replace' of undefined\r\n    at normalise (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\node_modules\\bower-config\\lib\\Config.js:96:56)\r\n    at Config.load (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\node_modules\\bower-config\\lib\\Config.js:23:20)\r\n    at readCachedConfig (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\lib\\config.js:15:39)\r\n    at defaultConfig (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\lib\\config.js:11:12)\r\n    at Object.<anonymous> (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\bower\\lib\\index.js:40:32)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)</code></pre>\r\n\r\nWorking .bowerrc:\r\n\r\n<pre><code>{\r\n    \"directory\": \"app/components\"\r\n}</code></pre>\r\n\r\nFailing .bowerrc\r\n\r\n<pre><code>{\r\n    \"directory\": \"app/components\",\r\n    \"registry\": {\r\n        \"search\": [ \"https://bower.herokuapp.com\" ]\r\n    }\r\n}</code></pre>"},"comment":{"url":"https://api.github.com/repos/bower/bower/issues/comments/148670935","html_url":"https://github.com/bower/bower/issues/1950#issuecomment-148670935","issue_url":"https://api.github.com/repos/bower/bower/issues/1950","id":148670935,"user":{"login":"sheerun","id":292365,"avatar_url":"https://avatars.githubusercontent.com/u/292365?v=3","gravatar_id":"","url":"https://api.github.com/users/sheerun","html_url":"https://github.com/sheerun","followers_url":"https://api.github.com/users/sheerun/followers","following_url":"https://api.github.com/users/sheerun/following{/other_user}","gists_url":"https://api.github.com/users/sheerun/gists{/gist_id}","starred_url":"https://api.github.com/users/sheerun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheerun/subscriptions","organizations_url":"https://api.github.com/users/sheerun/orgs","repos_url":"https://api.github.com/users/sheerun/repos","events_url":"https://api.github.com/users/sheerun/events{/privacy}","received_events_url":"https://api.github.com/users/sheerun/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T09:53:46Z","updated_at":"2015-10-16T09:53:46Z","body":"Should be fixed in bower 1.6.3. Thanks for the report"}}