2017-04-25 125 views
0

我正在嘗試安裝angular-material-data-table使用涼亭。當我運行bower info時,我得到0.10.90.10.10作爲版本。但是當我嘗試安裝這些特定版本時,它會給出ENORESTARGET錯誤。無法進行涼亭安裝

我認爲這是一個緩存問題,所以我也嘗試使用--force選項。我甚至試圖安裝而不提任何特定的版本來獲得相同的錯誤。我在這裏錯過了什麼嗎?

這裏的bower infobower install命令輸出 -

$ bower info angular-material-data-table 
bower cached  https://github.com/daniel-nagy/md-data-table.git#0.10.10 
bower validate  0.10.10 against https://github.com/daniel-nagy/md-data-table.git#* 

{ 
    name: 'angular-material-data-table', 
    version: '0.10.10', 
    description: 'Material Design data table.', 
    main: [ 
    'dist/md-data-table.js', 
    'dist/md-data-table.css' 
    ], 
    repository: { 
    type: 'git', 
    url: 'git://github.com/daniel-nagy/md-data-table.git' 
    }, 
    authors: [ 
    'Daniel Nagy' 
    ], 
    homepage: 'http://danielnagy.me/md-data-table', 
    license: 'MIT', 
    keywords: [ 
    'material', 
    'table', 
    'md-data-table' 
    ], 
    ignore: [ 
    '**/.*', 
    'app', 
    'bower_components', 
    'node_modules', 
    'src', 
    'Gruntfile.js' 
    ], 
    dependencies: { 
    angular: '^1.4.0', 
    'angular-material': '^1.0.0' 
    } 
} 

Available versions: 
    - 0.10.10 
    - 0.10.9 
    - 0.10.8 
    - 0.10.7 
    - 0.10.6 
    - 0.10.5 
    - 0.10.4 
    - 0.10.3 
    - 0.10.2 
    - 0.10.1 
    - 0.10.0 
    - 0.9.15 
    - 0.9.14 
    - 0.9.13 
    - 0.9.12 
    - 0.9.11 
    - 0.9.10 
    - 0.9.9 
    - 0.9.8 
    - 0.9.7 
    - 0.9.6 
    - 0.9.5 
    - 0.9.4 
    - 0.9.3 
    - 0.9.2 
    - 0.9.1 
    - 0.9.0 
    - 0.8.14 
    - 0.8.13 
    - 0.8.12 
    - 0.8.11 
    - 0.8.10 
    - 0.8.9 
    - 0.8.8 
    - 0.8.7 
    - 0.8.6 
    - 0.8.5 
    - 0.8.4 
    - 0.8.3 
    - 0.8.2 
    - 0.8.1 
    - 0.8.0 
    - 0.7.6 

You can request info for a specific version with 'bower info angular-material-data-table#<version>' 



$ bower install --save-exact angular-material-data-table#0.10.9 
bower not-cached https://github.com/russellmorley/angular-sig-pad.git#undefined 
bower resolve  https://github.com/russellmorley/angular-sig-pad.git#undefined 
bower cached  https://github.com/daniel-nagy/md-data-table.git#0.10.9 
bower validate  0.10.9 against https://github.com/daniel-nagy/md-data-table.git#0.10.9 
bower ENORESTARGET Tag/branch undefined does not exist 

Additional error details: 
Available tags: v0.1.0 
Available branches: master 
$ 
+0

爲什麼使用涼亭? – 2017-04-25 11:07:51

回答

0

我得到的錯誤是由於其在我有分支bower.json不同的依賴性設置爲未定義

"angular-sig-pad": "https://github.com/russellmorley/angular-sig-pad.git#undefined" 

所以這是而不是角度材料數據表的問題。下次在發佈問題之前,我應該更好地檢查我的bower.json。