2016-06-07 27 views
0

我想創建一個服務器鮑爾(從節點js使用私人涼亭)。 我認爲,問題來自TFS驗證(https://tfs.companyname.yyy/tfs/xxxxx)。 此服務器用於驗證基本身份驗證。鮑爾+私人涼亭+ TFS(自我託管)與身份驗證

這是我在互聯網上所瞭解的。

  • 用您的源文件創建一個git回購。
  • 將它推送到服務器。
  • 創建.bowerrc => {「註冊表」:「http://serverName:port」}(我使用本地主機的時刻)
  • 執行命令(現在也怪我)登記在Git中你的證書:git的LS- remote --tags --heads「https:// tfs.companyname.yyy/tfs/xxx」
  • 執行命令 「bower register package-name-here」git + https:// tfs.companyname.yyy/TFS/XXX」

我困在這裏不理解的問題 的錯誤是:

bower package-name-here#* resolve https:// tfs.companyname.yyy/tfs/xxx#*

bower package-name-here#* ECMDERR Failed to execute "git ls-remote --tags --heads https:// tfs.companyname.yyy/tfs/xxx", exit code of #128 bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https:// tfs.companyname.yyy': Invalid argument

Additional error details: bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https:// tfs.companyname.yyy': Invalid argument

回答

0

讓我進一步瞭解通過發展微型涼亭服務器2層的功能(搜索和查找包)的一些問題。

的Visual Studio 2015年總是顯示在GUI官方結果(bower.herokuapp.com)。

我.bowerrc(我認爲它是開放的鮑爾不支持憑據)

"registry": { 
     "search": [ 
        "http://bower.herokuapp.com", 
        "http://localhost:65200/" 
     ] 
    } 

要添加只需修改bower.json和卸載我沒有找到一個用戶友好的方式,使右鍵點擊=>刪除,並從bower.json

0

如果您使用的是託管TFS(VSTS),網址應該是這樣:https://example.visualstudio.com/_git/Repo_Name

+0

這是一個自託管TFS和URL是不是我認爲這個問題將其刪除。 Visual Studio在Bower服務器的工具中必須有一個硬編碼的url。因爲它沒有使用.bowerrc文件中的那個。 – Lenny32