{"action":"created","issue":{"url":"https://api.github.com/repos/antwarjs/antwar/issues/106","repository_url":"https://api.github.com/repos/antwarjs/antwar","labels_url":"https://api.github.com/repos/antwarjs/antwar/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/antwarjs/antwar/issues/106/comments","events_url":"https://api.github.com/repos/antwarjs/antwar/issues/106/events","html_url":"https://github.com/antwarjs/antwar/issues/106","id":176737094,"number":106,"title":"Issues with installation due to registry.nodejitsu.com not available ?","user":{"login":"andersosthus","id":184104,"avatar_url":"https://avatars.githubusercontent.com/u/184104?v=3","gravatar_id":"","url":"https://api.github.com/users/andersosthus","html_url":"https://github.com/andersosthus","followers_url":"https://api.github.com/users/andersosthus/followers","following_url":"https://api.github.com/users/andersosthus/following{/other_user}","gists_url":"https://api.github.com/users/andersosthus/gists{/gist_id}","starred_url":"https://api.github.com/users/andersosthus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersosthus/subscriptions","organizations_url":"https://api.github.com/users/andersosthus/orgs","repos_url":"https://api.github.com/users/andersosthus/repos","events_url":"https://api.github.com/users/andersosthus/events{/privacy}","received_events_url":"https://api.github.com/users/andersosthus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T20:09:18Z","updated_at":"2016-09-14T03:22:12Z","closed_at":null,"body":"Hi,\r\n\r\nInstallation of Antwar is failing with the following error:\r\n```\r\n2016.09.13.22.03.35 Start project initialization\r\n\r\n2016.09.13.22.03.35 Fetching boilerplate metadata\r\n2016.09.13.22.03.37\r\nProject initialization failed Error: connect ECONNREFUSED 173.192.57.106:80\r\n2016.09.13.22.03.37\r\nTime elapsed: 1 second\r\n```\r\n\r\nAfter looking through the code I think the issue is as follows:\r\n```npm-registry``` is used with default options in the Antwar installer. By default, npm-registry uses ```http://registry.nodejitsu.com``` for both registry lookups and package downloads. This URI seems to be not responding.\r\n\r\nI've tried npm-registry with ```http://registry.npmjs.org/``` manually in the REPL, and then it manages to find the metadata package for ```antwar-boilerplate```, but if I instantiate it with an empty options object like the Antwar installer, it fails with being unable to connect to the address above.\r\n\r\nA quick fix would be to pass in a config object to force the use of npmjs, along the lines of:\r\n```\r\n{\r\n  mirrors: {\r\n    npmjs: 'http://registry.npmjs.org/'\r\n  },\r\n  registry: 'http://registry.npmjs.org/'\r\n}\r\n```\r\n\r\nA better fix would, imo, be to be able to override it with a cmd line argument or something."},"comment":{"url":"https://api.github.com/repos/antwarjs/antwar/issues/comments/246895110","html_url":"https://github.com/antwarjs/antwar/issues/106#issuecomment-246895110","issue_url":"https://api.github.com/repos/antwarjs/antwar/issues/106","id":246895110,"user":{"login":"bebraw","id":166921,"avatar_url":"https://avatars.githubusercontent.com/u/166921?v=3","gravatar_id":"","url":"https://api.github.com/users/bebraw","html_url":"https://github.com/bebraw","followers_url":"https://api.github.com/users/bebraw/followers","following_url":"https://api.github.com/users/bebraw/following{/other_user}","gists_url":"https://api.github.com/users/bebraw/gists{/gist_id}","starred_url":"https://api.github.com/users/bebraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebraw/subscriptions","organizations_url":"https://api.github.com/users/bebraw/orgs","repos_url":"https://api.github.com/users/bebraw/repos","events_url":"https://api.github.com/users/bebraw/events{/privacy}","received_events_url":"https://api.github.com/users/bebraw/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T03:22:12Z","updated_at":"2016-09-14T03:22:12Z","body":"Hi,\r\n\r\nThanks for the report. I think I'll point it to npmjs by default. That should do it.\r\n\r\nI'm doing fairly heavy refactoring on the project right now by the way. It might be be better to look into it once I get the next major release out (a few days I hope)."}}
{"actor":{"display_login":"bebraw"}}