2015-03-13 133 views
0

这是NativeScript版本0.9.1NativeScript创建失败,错误:的getaddrinfo ENOTFOUND

我一直在关注的NativeScript设置为窗口的信息here。我现在是在一个地步,我尝试使用以下命令

nativescript create NativeScriptTest --log trace 

除本未能创建一个新的NativeScript项目,因为它不能让你好世界中的项目模板在日志中表示跟踪

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 

如果我直接去URL http://registry.npmjs.org/tns-template-hello-world我得到一个JSON文件回来。浏览器在我的网络上使用代理,我怀疑NativeScript不是出于某种原因。 NPM被配置为使用代理,npm config list包含此部分

; userconfig C:\Users\xxx\.npmrc 
https-proxy = "http://xxx.xxx.xxx.xxx:xxxxx/" 
proxy = "http://xxx.xxx.xxx.xxx:xxxxx/" 

所以,应NativeScript使用此UserConfig的代理信息?我需要在NativeScript中配置代理使用情况吗?

我搜查了nativescript.org文档,但如果有任何信息,我无法找到它的所有结果为他们的JavaScript代理对象。

我也试图通过

npm config add proxy http://xxx.xxx.xxx.xxx:xxxxx --global 
npm config add https-proxy http://xxx.xxx.xxx.xxx:xxxxx --global 

这不利于设置配置。

回答

相关问题