Reputation: 447
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.
Here is my .bowerrc file
{
"directory": "vendor",
"json": "bower.json"
}
Upvotes: 1
Views: 338
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