Malformed bower.json file

I have the latest version of Bower installed. I am trying the command

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

Bower has the error message that the bower.json file is malformed due to an unexpected string. I have tried a number of different things (punctuation etc) but get the same error... Any help is greatly appreciated


Bower is attempting to get tag 3.0.0 from your repo:

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

The bower.json from that release does have some issues:

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

Your best bet is to redo the tag

链接地址: http://www.djcxy.com/p/20092.html

上一篇: Bower自定义安装目录

下一篇: 格式不正确的bower.json文件