格式不正确的bower.json文件
我安装了最新版本的Bower。 我正在尝试命令
bower register flatly-3 https://github.com/brandonjschwartz/bower-bootswatch-flatly.git
Bower有错误消息,表明bower.json文件由于意外的字符串而出现错误。 我已经尝试了许多不同的东西(标点符号等),但得到相同的错误...任何帮助非常感谢
鲍尔试图从你的回购中获取标签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"
  }
}
你最好的选择是重做标签
链接地址: http://www.djcxy.com/p/20091.html