Questions tagged [bower]

Bower is a package manager for the web. Bower lets you easily install assets such as images, CSS and JavaScript, and manages dependencies for you.

Bower is an open source package manager for the web. Bower lets you easily install assets such as images, and , and manages dependencies for you. Assets can be any type of component, and any type of transport can be used.

3165 questions
158
votes
6 answers

Should bower_components be gitignored?

Would it be good practice to keep only the bower.json file and gitignore the whole bower_components directory?
Pierre de LESPINAY
  • 40,390
  • 50
  • 195
  • 282
154
votes
10 answers

Installing a dependency with Bower from URL and specify version

I am trying to install a dependency with Bower using a URL. As of Bower documentation: Bower offers several ways to install packages: # Using the dependencies listed in the current directory's bower.json bower install # Using a local or…
Edmondo1984
  • 17,841
  • 12
  • 55
  • 99
141
votes
37 answers

npm - EPERM: operation not permitted on Windows

I ran npm config set prefix /usr/local After running that command, When trying to run any npm commands on Windows OS I keep getting the below. Error: EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\Git\local' at Error (native) Have…
Lahar Shah
  • 5,402
  • 4
  • 20
  • 37
135
votes
7 answers

Using bootstrap with bower

I'm trying to use bootstrap with bower, but since it clones the whole repo, there is no CSS and other stuff. Does it means that I need to include building Bootstrap in my own build process? Or if I'm wrong, what's the right workflow?
xavier.seignard
  • 10,084
  • 12
  • 44
  • 71
129
votes
6 answers

How to update bower.json with installed packages?

In my project I've installed bower components without save option. Now, I would like update to bower.json? How can I update bower.json with installed packages?
kongaraju
  • 8,507
  • 9
  • 48
  • 75
123
votes
13 answers

How to fix bower ECMDERR

I'm using "yeoman" and "bower" on windows 7 but got the following error when I create the app yo webapp The error is bower not-cached git://github.com/jlong/sass-bootstrap.git#~3.0.0 bower resolve …
leoh
  • 9,468
  • 6
  • 24
  • 39
114
votes
5 answers

Extending AngularJs Directive

I'd like to make a minor modification to a 3rd party directive (specifically Angular UI Bootstrap). I simply want to add to the scope of the pane directive: angular.module('ui.bootstrap.tabs', []) .controller('TabsController', ['$scope',…
Kyle
  • 17,480
  • 23
  • 68
  • 100
108
votes
10 answers

bower command not found windows

I am having huge problems trying to use bower (to install foundation 5) or get anything bower related to work on the command line. I've installed ruby 1.9.3 git (with run from command prompt option) Nodejs I've successfully ran npm install -g…
trickydisco
  • 1,191
  • 2
  • 8
  • 5
107
votes
1 answer

NPM/Bower/Composer - differences?

Can someone explain to me the difference between NPM, Bower and Composer. They are all package managers - correct? But when should each one be used? Also, each one appears to have a json file that accompanies it, does this store all the packages you…
panthro
  • 19,109
  • 50
  • 152
  • 271
107
votes
2 answers

What is the "main file" property when doing bower init?

What is the use of property main file when you run bower init? I have been looking and many people says that it currently has no purpose. Is that true? Bower's documentation doesn't explain it either.
raulricardo21
  • 2,489
  • 4
  • 19
  • 27
99
votes
3 answers

How to find available versions for a bower dependency

Let's say I want to include the latest version of jquery-ui in my bower.json. Is there any way of finding out which versions are available? I see that I can find available components on http://sindresorhus.com/bower-components/#!/search/jquery-ui…
opsb
  • 26,793
  • 17
  • 85
  • 96
91
votes
2 answers

Using Grunt, Bower, Gulp, NPM with Visual Studio 2015 for a ASP.NET 4.5 Project

Visual Studio 2015 comes with built in support for tools like Grunt, Bower, Gulp and NPM for ASP.NET 5 projects. However when I create a ASP.NET 4.5.2 project using Visual Studio 2015 it doesn't use these tools. I'd like to use bower instead of…
Robert Hegner
  • 8,196
  • 6
  • 51
  • 89
86
votes
24 answers

Git / Bower Errors: Exit Code # 128 & Failed connect

I am using Bower to install several libraries. For demonstration purposes here, I am installing bootstrap. Regardless of the package, I receive the following errors: C:\Scott>bower install bootstrap bower not-cached …
azsl1326
  • 1,400
  • 2
  • 12
  • 22
80
votes
9 answers

Recommended way to include bootstrap library in Ember.JS ember-cli App

I am trying to install properly Twitter Bootstrap in my current ember-cli project. I did install bootstrap with bower : bower install --save bootstrap Now the library is downloded in /vendor/bootstrap/dist/(css|js|fonts) I tried what is mentioned…
Guidouil
  • 1,654
  • 2
  • 18
  • 16
77
votes
2 answers

Package Manager: Bower vs jspm

How is Bower different than jspm? Can Bower provide jspm functionality about SystemJS universal module loader?
Lee Chee Kiam
  • 9,693
  • 10
  • 56
  • 76