tugberk
tugberk

Reputation: 58494

run bower install for target bower.json file

Assume that my working directory is c:\foo\ during the script execution. I would like run bower from there for c:\foo\bar\bower.json file. This is available on npm by running npm install --prefix c:\foo\bar.

Is there any equivalent command in bower?

Upvotes: 0

Views: 1604

Answers (1)

Evan Davis
Evan Davis

Reputation: 36602

Add a .bowerrc file to c:\foo\ with the following contents:

{
   "cwd": "bar
}

this will set the working directory for Bower to c:\foo\bar\.

Upvotes: 1

Related Questions