0

在Windows 7 PC上安裝Titanium Studio後,我試圖創建一個新的移動項目,但收到一個錯誤,指示我沒有登錄和項目沒有創建。另外請注意,這臺電腦不在公司代理服務器因此,當它試圖創建新項目時,它試圖與Appcelerator服務器進行通信以爲該項目創建一個新的GUID。它直接訪問服務器而不使用公司代理。鈦錯誤與服務器通信:錯誤:連接ETIMEDOUT

當我打開終端,運行TI命令ti status返回我沒有登錄。我然後運行命令ti login,輸入我的用戶名/密碼,結果是[ERROR] Error: Error communicating with the server: Error: connect ETIMEDOUT

回答

0

鈦金CLI設置httpProxyServer是空的,所以沒有使用代理。要驗證此運行此命令並找到httpProxyServer屬性。

ti config 

cli.httpProxyServer = "" 

來設置該屬性:

ti config --append cli.httpProxyServer http://enter-your-proxy-address-here.com:80 

cli.httpProxyServer saved 

現在登錄:

ti login 
Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.GA 
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. 

Please report bugs to http://jira.appcelerator.org/ 

Username: enter-your-userid-here 
Password: ********** 
Logged in successfully 

現在,您將能夠創建一個新的移動項目。

請注意,這篇文章是關於一個需要http代理的問題。