Mark Bucknell
Mark Bucknell

Reputation: 447

Why is bower outputting JSON to the command line

Recently, whenever I try to use Bower in my SSH terminal I get all responses returned in a JSON format.

The first image is of a simple bower command. This usually renders all the options in a formatted version, not JSON.

The second image is of the bower install command. Once again, it usually renders the output in a standard format and not JSON.

bower command example enter image description here

Here is my .bowerrc file

{
  "directory": "vendor",
  "json": "bower.json"
}

Upvotes: 1

Views: 338

Answers (1)

ceejayoz
ceejayoz

Reputation: 179994

"json": "bower.json" in your .bowerrc isn't doing what you think it's doing. It's doing the same as "json": true and triggering Bower's --json config option that enables JSON output.

http://bower.io/docs/api/#json

Upvotes: 6

Related Questions