【问题标题】:Malformed bower.json file格式错误的 bower.json 文件
【发布时间】:2013-10-22 21:29:08
【问题描述】:

我安装了最新版本的 Bower。我正在尝试命令

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

Bower 有错误消息,即 bower.json 文件由于意外字符串而格式错误。我尝试了许多不同的东西(标点符号等),但得到了同样的错误......非常感谢任何帮助

【问题讨论】:

    标签: json bower


    【解决方案1】:

    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"
      }
    }
    

    最好的办法是重做标签

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-05
      • 1970-01-01
      • 2015-10-25
      • 1970-01-01
      • 1970-01-01
      • 2017-10-13
      • 1970-01-01
      相关资源
      最近更新 更多