2015-03-13 99 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 

這不利於設置配置。

回答

相關問題