我安装了最新版本的 Bower。我正在尝试命令
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 确实存在一些问题:
{
"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"
}
}
你最好的选择是重做标签