Skip to main content

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.

Filter by
Sorted by
Tagged with
2075 votes
7 answers
310k views

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack [closed]

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 ...
VB_'s user avatar
  • 45.4k
1909 votes
8 answers
332k views

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.
Nafiul Islam's user avatar
  • 81.8k
628 votes
2 answers
190k views

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 ...
apprenticeDev's user avatar
481 votes
6 answers
217k views

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 ...
Adam Ramadhan's user avatar
293 votes
3 answers
34k views

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 ...
pherris's user avatar
  • 17.5k
283 votes
5 answers
116k views

What is the bower (and npm) version syntax?

Bower enables me to specify version requirements for packages using the following syntax: "dependencies": { "<name>": "<version>", }, But I have not been able to find what is the ...
Samuel Hapak's user avatar
  • 7,112
259 votes
3 answers
72k views

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 ...
Matt Mills's user avatar
  • 8,752
242 votes
1 answer
107k views

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 ...
Selah's user avatar
  • 7,966
236 votes
18 answers
361k views

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 ...
user3112929's user avatar
  • 2,411
231 votes
5 answers
54k views

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....
Nithin Baby's user avatar
  • 7,516
225 votes
47 answers
760k views

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:\...
Lahar Shah's user avatar
  • 7,444
208 votes
8 answers
185k views

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 ...
Luke's user avatar
  • 21.2k
168 votes
5 answers
175k views

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's user avatar
  • 2,517
164 votes
6 answers
67k views

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 ...
John's user avatar
  • 3,886
164 votes
5 answers
51k views

JavaScript dependency management: npm vs. bower vs. volo [closed]

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 ...
Yugal Jindle's user avatar
  • 45.2k
160 votes
1 answer
82k views

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 '...
Gary's user avatar
  • 2,251
158 votes
6 answers
44k views

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's user avatar
155 votes
10 answers
115k views

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 ...
Edmondo's user avatar
  • 19.9k
135 votes
7 answers
124k views

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 ...
xavier.seignard's user avatar
131 votes
6 answers
91k views

How can I update bower.json with installed packages?

In my project I've installed Bower components without the save option. Now, I would like update to bower.json. How can I update bower.json with installed packages?
kongaraju's user avatar
  • 9,532
123 votes
13 answers
74k views

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 ...
leoh's user avatar
  • 10.5k
116 votes
1 answer
47k views

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 ...
panthro's user avatar
  • 23.7k
114 votes
5 answers
52k views

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', []) ....
Kyle Cureau's user avatar
  • 19.3k
108 votes
10 answers
102k views

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 ...
trickydisco's user avatar
  • 1,191
107 votes
2 answers
38k views

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's user avatar
101 votes
3 answers
49k views

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://...
opsb's user avatar
  • 29.9k
91 votes
2 answers
33k views

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 ...
Robert Hegner's user avatar
86 votes
24 answers
106k views

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 ...
azsl1326's user avatar
  • 1,410
80 votes
9 answers
47k views

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/...
Guidouil's user avatar
  • 1,714
78 votes
16 answers
88k views

Bower calls blocked by corporate proxy

I'm trying to use Bower for a web app, but find myself hitting some sort of proxy issues: D:\>bower search jquery bower retry Request to https://bower.herokuapp.com/packages/search/jquery ...
LJW's user avatar
  • 2,378
77 votes
2 answers
17k views

Package Manager: Bower vs jspm

How is Bower different than jspm? Can Bower provide jspm functionality about SystemJS universal module loader?
Lee Chee Kiam's user avatar
77 votes
7 answers
122k views

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 ...
Vishnu Sureshkumar's user avatar
76 votes
4 answers
58k views

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....
Adam Coulombe's user avatar
71 votes
7 answers
47k views

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 ...
Connor Leech's user avatar
  • 18.6k
71 votes
2 answers
43k views

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 ...
Cremix_hellven's user avatar
68 votes
8 answers
87k views

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: $ ...
Doug's user avatar
  • 34.4k
68 votes
2 answers
42k views

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 ...
xyzzyrz's user avatar
  • 16.3k
67 votes
4 answers
46k views

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 ...
user007's user avatar
  • 1,624
63 votes
5 answers
30k views

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 ...
Nick Heiner's user avatar
63 votes
3 answers
37k views

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 ...
Chad's user avatar
  • 2,446
63 votes
3 answers
32k views

"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 ...
Evan Hahn's user avatar
  • 12.5k
62 votes
4 answers
42k views

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/...
user391986's user avatar
  • 30.5k
62 votes
4 answers
37k views

Can bower automatically write <script> tags into index.html?

I'm using yeoman's backbone generator, and I ran this: bower install backbone.localStorage -S And I manually had to insert this into index.html: <script src="bower_components/backbone....
CaptSaltyJack's user avatar
61 votes
5 answers
45k views

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! ...
user2229167's user avatar
59 votes
11 answers
105k views

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 ...
Johann Sonntagbauer's user avatar
58 votes
8 answers
67k views

Run bower from root user, it's possible? How?

I have a local development server where I test a lot of things, now I'm playing with bower to manage the libraries' dependencies in my Symfony2 project. After getting NodeJS (v0.10.31) installed and ...
ReynierPM's user avatar
  • 18.4k
57 votes
4 answers
55k views

Choose bower install directory

This is a follow-up to this question. I'm using bower 0.7.1, and still cannot get the components to be installed anywhere else than in the components folder. I tried adding the following line to my ...
BenMorel's user avatar
  • 35.9k
57 votes
3 answers
28k views

Problems updating bower to the latest version

I am using bower $ bower -v 0.9.2 latest version of bower is 1.x.x https://github.com/bower/bower/releases I run to update bower to the latest version npm update -g bower this does not help I ...
Nedudi's user avatar
  • 5,879
57 votes
0 answers
29k views

Can I add a git repository to my bower.json? [duplicate]

I am trying to use bower to pull down a git repository when I run a bower install. Is there any way of listing a git repository as a dependency? I can't find any info in the documentation, but maybe ...
jhamm's user avatar
  • 24.8k
56 votes
17 answers
60k views

Cannot find module 'internal/fs' after upgrading to node 7

We've recently tried to upgrade to node v7.0.0 on our build server, but started to have issues during the application build task failing on the "bower_concat" step: Loading "bower-concat.js" tasks......
alecxe's user avatar
  • 470k

1
2 3 4 5
64