Change Bower Installation Directory

Change Bower Component Installation Directory

To change the bower’s component installation directory as you want you first need to create a .bowerrc file and define the custom location in this .bowerrc like the below.

    "directory": "yourCustomDirectoryLocation"

Then as usual just make a bower.json file where you will write down all the dependencies for your projects like the below.

  "name": "YourProjectName",
  "description": "Description of your project",
  "homepage": "",
  "author": "Yourname <>",
  "dependencies": {
      "bootstrap":">= 3.0.0",
      "jquery": "~2.0.3"

now run bower install command and all the required dependencies will be installed to your defined directory (as you configured in your .bowerrc file).

Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.

Site Footer