title: NativeScript create fails with Error: getaddrinfo ENOTFOUND
body: <p>This is for NativeScript version 0.9.1</p>
  
  <p>I've been following the NativeScript setup for windows information <a href="http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-win.html" rel="nofollow">here</a>. I'm now at a point where I'm trying to create a new NativeScript project using the following command</p>
  
  <pre><code>nativescript create NativeScriptTest --log trace
  </code></pre>
  
  <p>Except this is failing because it can't get the hello-world project template as indicated in the log trace</p>
  
  <pre><code>Starting watch on killswitch C:\Users\xxx\AppData\Local\Temp\xxx\KillSwitches\cli
  AnalyticsInstallationID: xxx
  monitor not started
  monitor not started
  monitor has started, connecting to http://xxx.monitor-eqatec.com/json.ashx
  Statistics failed to be sent: 503
  Statistics failed to be sent: 503
  Creating a new NativeScript project with name NativeScriptTest and id org.nativescript.NativeScriptTest at location x:\xxx\NativeScriptTest
  Using NativeScript hello world application
  User-Agent: AppBuilderCLI/0.9.1 (Node.js 0.10.33; win32; x64)
  httpRequest: { method: 'GET',
    host: 'registry.npmjs.org',
    port: null,
    path: '/tns-template-hello-world',
    headers:
     { Accept: 'application/json; charset=UTF-8, */*;q=0.8',
       'User-Agent': 'AppBuilderCLI/0.9.1 (Node.js 0.10.33; win32; x64)',
       'Accept-Encoding': 'gzip,deflate' } }
  httpRequest: Sending:
  [nothing]
  { [Error: getaddrinfo ENOTFOUND] stack: [Getter] }
  Error: getaddrinfo ENOTFOUND
      at FiberFuture.Future.wait (C:\Users\xxx\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:488:15)
      ... more stacktrace
  </code></pre>
  
  <p>If I go directly to the URL <code>http://registry.npmjs.org/tns-template-hello-world</code> I get a JSON document back. The browser uses the proxy on my network, I suspect that NativeScript isn't for some reason. NPM is configured to use a proxy, <code>npm config list</code> contains this section</p>
  
  <pre><code>; userconfig C:\Users\xxx\.npmrc
  https-proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"
  proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"
  </code></pre>
  
  <p>So, should NativeScript be using this userconfig proxy information? Is there something I need to configure in NativeScript for proxy usage?</p>
  
  <p>I have searched the nativescript.org documentation, but if there is any information there I can't find it amongst all the results for their javascript proxy object.</p>
  
  <p>I have also tried setting the config via</p>
  
  <pre><code>npm config add proxy http://xxx.xxx.xxx.xxx:xxxxx --global
  npm config add https-proxy http://xxx.xxx.xxx.xxx:xxxxx --global
  </code></pre>
  
  <p>which doesn't help.</p>