Choose bower install directory

bower

Solution

Actually the .bowerrc file does work, this was an issue with my IDE not saving the file properly:

{
  "directory" : "public/components"
}

I'm still wondering why `componentsDirectory` still doesn't work in `component.json`, though.

Problem

This is a follow-up to this question. I'm using bower 0.7.1, and still cannot get the components to be installed anywhere else than in the `components` folder. I tried adding the following line to my `component.json`, as per this PR: ``` "componentsDirectory": "public/components" ``` But it will still install in `./components`. I tried to create a `.bowerrc` file next to `component.json`: ``` { "directory" : "public/components" } ``` But I get this error when running `bower install`: Error: Unable to parse local .bowerrc file: Unexpected token } Any idea?

Original source

Related problems