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
1994
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_
  • 43,322
  • 32
  • 111
  • 238
1818
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
  • 71,327
  • 31
  • 126
  • 185
620
votes
2 answers

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

I'm new to using npm and bower, building my first app in emberjs :). I do have a bit of experience with rails, so I'm familiar with the idea of files for listing dependencies (such as bundler Gemfile) Question: when I want to add a package (and…
apprenticeDev
  • 7,813
  • 3
  • 18
  • 25
480
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,112
  • 25
  • 79
  • 120
292
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
  • 15,365
  • 6
  • 39
  • 53
276
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,423
  • 2
  • 30
  • 54
256
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,209
  • 6
  • 32
  • 59
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
  • 6,562
  • 6
  • 44
  • 51
234
votes
17 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,391
  • 2
  • 10
  • 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,236
  • 4
  • 16
  • 24
207
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
  • 19,180
  • 30
  • 102
  • 166
163
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…
Johnny
  • 3,631
  • 6
  • 29
  • 36
162
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,339
  • 2
  • 15
  • 20
161
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
  • 39,295
  • 39
  • 121
  • 191
160
votes
1 answer

Bower and devDependencies vs dependencies

I ran 'yo angular' and realized afterwards that it installs 1.0.8, I uninstalled the angular components, however the original bower.json file had angular-mocks and angular-scenario under 'devDependencies' when I re-add all the 1.2.0-rc.2 components…
Gary
  • 2,171
  • 3
  • 18
  • 20
1
2 3
99 100