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.

3166 questions
2062
votes
7 answers

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just download the dependencies and don't know how to build…
VB_
  • 45,112
  • 42
  • 145
  • 293
1899
votes
8 answers

What is the difference between Bower and npm?

What is the fundamental difference between bower and npm? Just want something plain and simple. I've seen some of my colleagues use bower and npm interchangeably in their projects.
Games Brainiac
  • 80,178
  • 33
  • 141
  • 199
625
votes
2 answers

Difference between Grunt, NPM, and Bower (package.json vs bower.json)

When I want to add a package (and check in the dependency into git), where does it belong - into package.json or into bower.json? From what I gather, running bower install will fetch the package and put it in /vendor directory, running npm install…
apprenticeDev
  • 8,029
  • 3
  • 23
  • 25
481
votes
6 answers

How to change bower's default components folder?

I'm making a new project that uses bower from twitter. I created a component.json to maintain all my dependency like jquery. Then I run bower install that installs everything in a folder named components. But I need to install the components in a…
Adam Ramadhan
  • 22,712
  • 28
  • 84
  • 124
293
votes
3 answers

bower init - difference between amd, es6, globals and node

I am creating my first Bower component. After running bower init the script asks me 'what types of modules does this package expose?' with these options: amd es6 globals node what is the difference between these options?
pherris
  • 17,195
  • 8
  • 42
  • 58
282
votes
5 answers

What is the bower (and npm) version syntax?

Bower enables me to specify version requirements for packages using the following syntax: "dependencies": { "": "", }, But I have not been able to find what is the syntax to use for the . I know that I can specify versions…
Samuel Hapak
  • 6,950
  • 3
  • 35
  • 58
259
votes
3 answers

Bower install using only https?

I am trying to set up Bower on a build server at our organization's data center, but git's port does not appear to be open on the data center's firewall. I can use the git command line client to clone via https://[repo], but not git://[repo]. Is…
Matt Mills
  • 8,692
  • 6
  • 40
  • 64
242
votes
1 answer

bower automatically update bower.json

I run the following commands using bower 1.0.0: mkdir testdir;cd testdir bower init #accept defaults bower install jquery -s #the -s is supposed to cause update of bower.json less bower.json In bower.json I expect to see dependencies listed, but…
Selah
  • 7,728
  • 9
  • 48
  • 60
236
votes
18 answers

Bower: ENOGIT Git is not installed or not in the PATH

Git is installed and is in the path. Platform: Red Hat Enterprise Linux 5.8. >which git /usr/local/bin/git Yet bower can't find it: bower angular#1.0.6 ENOGIT git is not installed or not in the PATH What is the recommended work-around?
user3112929
  • 2,411
  • 2
  • 12
  • 5
231
votes
5 answers

EINVRES Request to https://bower.herokuapp.com/packages/ failed with 502

Bower install fails with 502 - Bad Gateway when downloading bower packages. For example bower install for ember library gives following response in command line. EINVRES Request to https://bower.herokuapp.com/packages/ember failed with 502 When…
Nithin Baby
  • 7,486
  • 4
  • 21
  • 25
208
votes
47 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
  • 7,032
  • 4
  • 31
  • 39
208
votes
8 answers

Installing Bower on Ubuntu

I'm trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing sudo apt-get install npm and sudo npm install -g bower I get the following after issuing bower on the command line: /usr/bin/env: node: No…
Luke
  • 20,878
  • 35
  • 119
  • 178
168
votes
5 answers

bower command not found

I tried to install twitter bower on my Mac, and I used npm install bower -g Then I tried bower --help, and the output was bower command not found. Why is that?
Amo Wu
  • 2,507
  • 2
  • 18
  • 22
164
votes
6 answers

How to install latest (untagged) state of a repo using bower?

I have a very small repo in which I do all dev work in the master branch and use tags as "stable" points in history. I guess by default Bower seems to fetch the latest tagged version of a repo. I'm trying to get the most recent commit in the master…
John
  • 3,866
  • 6
  • 33
  • 37
164
votes
5 answers

JavaScript dependency management: npm vs. bower vs. volo

How do you compare npm, bower and volo? All three can be used to install JavaScript dependencies for a UI project. I understand npm is more node specific. So, when to use what? npm still stands distant, but bower and volo seem to be solving exactly…
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197
1
2 3
99 100