Question

I'm having trouble getting .bowerrc to change my dependencies directory:

mkdir bower-custom-install
cd bower-custom-install
touch .bowerrc

Add this to .bowerrc:

{
    "diretory": "components"
}

..then:

bower init
bower install angular --save
angular#1.2.15 bower_components/angular

I also tried uninstalling and reinstalling bower.

Any idea why bower is not using my .bowerrc "components" directory?

Here's a repo of this project (minus the components folder, which Git won't let me commit):

P.S. I'm on OS 10.9.2 with:

node -v
v0.10.26
npm -v
1.4.6
bower -v
1.3.1
Était-ce utile?

La solution

The answer is "c": try "directory" - you wrote "diretory".

And sometimes, StackOverflow should allow answers shorter than 30 characters (here, technically, it's a one character answer :-)).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top