Malformed bower.json file
我安装了最新版本的Bower。 我正在尝试这个命令
1 | bower register flatly-3 https://github.com/brandonjschwartz/bower-bootswatch-flatly.git |
Bower的错误消息是bower.json文件由于意外的字符串而格式错误。 我尝试了许多不同的东西(标点符号等),但得到同样的错误...非常感谢任何帮助
Bower试图从你的回购中获得3.0.0的标签:
https://github.com/brandonjschwartz/bower-bootswatch-flatly/releases/tag/3.0.0
该版本的bower.json确实存在一些问题:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | { "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" } } |
你最好的选择是重做标签