2013-10-22 109 views
-2

我安裝了最新版本的Bower。我試圖命令格式不正確的bower.json文件

bower register flatly-3 https://github.com/brandonjschwartz/bower-bootswatch-flatly.git 

鮑爾有錯誤的信息,即bower.json文件的格式不正確由於意外的字符串。我已經嘗試了一些不同的東西(標點符號等),但得到了同樣的錯誤...任何幫助是極大的讚賞

回答

0

鮑爾試圖從你的回購獲取標記3.0.0:

https://github.com/brandonjschwartz/bower-bootswatch-flatly/releases/tag/3.0.0

從該版本的bower.json確實有一些問題:

{ 
    "name": "bower-bootswatch-flatly", 
    "version": "2.3.2", 
    "main": "less/flatly.less", 
    "keywords": [ 
    "flatly", 
    "bootstrap", 
    "twitter bootstrap", 
    "bootswatch", 
    "less", 
    "css", 
    "flat", 
    "flat ui", 
    "theme" 
    ] <-- missing comma 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "components" 
    ], 
    "dependencies": { 
    "bootstrap-less": "2.3.2" 
    } 
} 

最好的辦法是重做標籤