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
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
  • 11,450
  • 10
  • 65
  • 87
76
votes
4 answers

Bower: Install 2 versions of jQuery

How would I go about installing 2 versions of jQuery using bower? I want to have v2.0 as well as 1.9.1 for browser support fallback The issue I'm having is that if you run bower install jquery#1.9.1 jquery#2.0.0 the first version gets overwritten…
Adam Coulombe
  • 1,505
  • 1
  • 11
  • 11
73
votes
7 answers

Node JS NPM modules installed but command not recognized

Node JS and NPM were working well before. Recently I have re-installed the Node JS, NPM and the problem started. After I install a module like an example npm install -g bower, the module gets installed successfully but bower -v gives 'bower' is not…
Vishnu Sureshkumar
  • 2,246
  • 6
  • 35
  • 52
71
votes
7 answers

configure node express to serve static bower_components?

I have a directory structure projectName | - bower_components/ | - public/ | - css | - js | - index.html | - Gruntfile.js | - package.json | - bower.json | - app.js I would like to start my app and…
Connor Leech
  • 18,052
  • 30
  • 105
  • 150
69
votes
8 answers

How do you uninstall all your bower packages?

Sometimes it's useful to rebuild an entire site and force bower to reinstall new versions of all the packages in bower.json. However, there doesn't seem to be any way of doing that: Attempt #1: $ bower uninstall bower not-installed 0 Nope, that…
Doug
  • 32,844
  • 38
  • 166
  • 222
68
votes
2 answers

How to resolve Bower dependency version conflicts?

I have a project that depends on both: jquery ~1.9.1 another project which in turn depends on jquery >=1.7.2 But when I run bower install, it ends up installing jquery 2.0.2. This seems broken. How do I either (a) make it correctly solve the…
Yang
  • 16,037
  • 15
  • 100
  • 142
65
votes
4 answers

What is the difference between brew, yarn, and npm?

I was using the react-native package which I installed globally with npm. Now it says at the first line after executing the init command. The following: Installing react-native from npm... Consider installing yarn to make this faster:…
user007
  • 1,557
  • 3
  • 16
  • 24
63
votes
2 answers

What is the purpose of .bin folder in node_modules?

Today one colleague explained me how to create nodejs projects and I notice that in ./node_modules there is an invisible folder named .bin. I must said that I discovered this after adding to the project "bootcamp" and "bower" tools. What's .bin…
Cremix_hellven
  • 895
  • 2
  • 7
  • 13
63
votes
3 answers

"ignore" in Bower's bower.json?

Bower's website describes the ignore key in bower.json: ignore [array]: An array of paths not needed in production that you want Bower to ignore when installing your package. Does this mean that it's ignoring paths in installed components, or in…
Evan Hahn
  • 12,147
  • 9
  • 41
  • 59
63
votes
3 answers

Specifying latest revision of a particular branch with bower

I want to specify the latest revision of a particular branch as a dependency. Specifically, I'd like to use Bootstrap v3.0 before it is released. What is the best way to specify that as a dependency in bower?
Chad
  • 2,378
  • 2
  • 26
  • 27
63
votes
5 answers

Automate npm and bower install with grunt

I have a node / angular project that uses npm for backend dependency management and bower for frontend dependency management. I'd like to use a grunt task to do both install commands. I haven't been able to figure out how to do it. I made an attempt…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
62
votes
4 answers

How to register a local git package in Bower?

How can I register a local git package in bower? My current component.json is as follows { "name": "myproject", "version": "1.0.0", "dependencies": { "jquery": "1.8.0", "twitter/bootstrap": "2.1.1" } } However I also would like to…
user391986
  • 29,536
  • 39
  • 126
  • 205
59
votes
11 answers

bower proxy configuration

is there a way to configure bower not only to use a proxy but ignore the proxy configuration for some domains? I have the problem, that I will run an internal bower registry for our own developed components. For that repository I would like to…
Johann Sonntagbauer
  • 1,294
  • 1
  • 10
  • 20
58
votes
5 answers

What does 'invalid' mean when using npm list?

I am new to nodejs and i had just installed bower module globally. Ever since then, npm list command gives the following output which I searched for on the web but couldn't find any help : **npm ERR! invalid: chalk@0.5.1…
user2229167
  • 703
  • 1
  • 5
  • 7