bower,bower-install , Bower: Install package that doesn't have bower.json file

Bower: Install package that doesn't have bower.json file


Tag: bower,bower-install

I'm trying to get Bower to install this javascript:

I use: bower install [email protected]:markmalek/Fixed-Header-Table.git --save

It installs the package into bower-components, and even adds it to my project's bower.json, but it doesn't add the to my html. I'm guessing it's because that particular git repo doesn't contain a bower.json telling my project which js file is the main one. So how do I install this package?



This answer takes your assumption that your HTML is picking up scripts loaded via Bower using the bower.json file as correct.

There are two options. The quickest is to fork the repo yourself, and in the main directory use the command bower init to create your own bower.json file in your forked version of the repo. Then, change the github url to the repo to your forked version rather than the original you have above.

The second option is to submit a pull request to the package owner adding a bower.json file so that you can continue to pull directly from his repo.

There are probably more options like manually loading the script outside of pulling from a bower.json file but the two above seem simplest.


So I have angular from bower, now what?

I just started a new project, these are the exact steps I have taken. foundation new project_name --libsass bower install angular --dev grunt build All good, the sass files are compiling, angular is setup under bower_components inside the angular folder, but wait..... Now I need to add Angular's ng-resource module....

Sharing code across multiple projects in AngularJS

Firstly, I am new to AngularJS. I was wondering what are the best practices around sharing common javascript code across multiple AngularJS projects? What do the experienced AngularJS ninjas do out there? I have heard of bower....

How I Can Create a Yeoman or Bower repository in Nexus

Hi we have an Internal Nexus Repository for our JS artifacts How can we get the same type of Repository for,, or any other package manager beside NPM?...

Gulp / Bower - maintaining consistency

I feel like im missing something stupid here, can someone explain to me why i can't pull in .bowerrc into gulp? The file structure and process should be extremely simple: global.js "use strict"; var gulp = require('gulp'); var bowerRC = require('../.bowerrc'); module.exports.getBowerRC = function() { return console.log(JSON.stringify(bowerRC)); } .bowerrc {...

Development Workflow - Bootstrap (Less), Bower and Grunt

I am trying to step up my game as far as my folder structure and workflow is considered. I have recently discovered that front end package management and automation of tasks are key to improve speed, decreasing dev time, decrease file size and increase profit. My issue is I am...

Remove warning for package “was not injected in your file” when using Grunt?

I have "angular-i18n" installed as a bower dependency. When I run grunt serve or grunt build I have receive warning: angular-i18n was not injected in your file. Please go take a look in "/$APP_ROOT/bower_components/angular-i18n" for the file you need, then manually include it in your file. How can I remove...

How to get Bower Install to copy files to another directory before linking them in html file?

In my gruntfile.js I am using bower install to create the necessary script tags in my index.html for all my js libraries. My grunt file entry looks like this: bowerInstall: { target: { src: ['wwwroot/index.html'], cwd: '', dependencies: true, devDependencies: true, exclude: [], fileTypes: {}, ignorePath: '', overrides: {} }...

lodash npm distribution in browser

I'm using lodash in my tests, Not using webpack or browserify (don't need to). I found that the default npm build differs from what's in bower. I could of course use bower version, but I'm curious if I can use npm's instead (it's already there for Gulp). For bower I...

Include libraries with Composer, NPM or Bower

I have been getting into Composer, NPM and Bower recently. I no there's a lot of overlap between their capabilities and I was wondering if my approach is sane? If not, what should I do? I typically start my PHP projects by setting up composer to load my PHP libraries...

cant install ionic-service-deploy

I am using ionic and wanted to add deploy option to my code but cant install ionic-service-deploy I am trying to run ionic add ionic-service-deploy but getting error: > Failed to find the bower component "ionic-service-deploy". Are you sure it exists? (CLI v1.4.5) Your system information: Cordova CLI: 5.0.0 Ionic...

Node JS NPM modules installed but command not recognized

Node JS and NPM was working well before. Recently I have re-installed the Node JS, NPM and the problem started. After I install a module like example npm install -g bower, the module gets installed successfully but bower -v gives 'bower' is not recognized as an internal or external command,...

Naming conventions and file placement using Bower and Gulp

I started working with Bower and Gulp just recently. I have a bower.json listing my dependencies, a gulpfile.js with tasks for fonts, css, js, etc. and a package.json listing gulp dependencies, among other things. I have only those files under version control and as a test checked out the repository...

Handlebars does not output anything

At the start of the file I define Handlebars etc.: <!-- build:js(.) scripts/vendor.js --> <!-- bower:js --> <script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> <script src="bower_components/handlebars/handlebars.js"></script> <!-- endbower --> <!-- endbuild --> At the end of the index.html-file I pull in my Handlebars-file: <!-- build:js({app,.tmp}) scripts/main.js --> <script...

Does an existing gruntfile need to be edited? What is the common workflow?

For an existing app, is there a proper protocol for specifying bower packages such that they're handled correctly when running "grunt build"? Does an existing gruntfile need to be edited? What is the common workflow?

Revert to state before installing a bower component

I just installed angular-pdf with Bower, and in the installation process, it asked me Unable to find a suitable version for angular, please choose one: 1) angular#>=1 <1.3.0 which resolved to 1.2.28 and is required by angular-bootstrap#0.12.0 2) angular#1.3.15 which resolved to 1.3.15 and is required by angular-cookies#1.3.15, angular-pdf#0.4.0 3)...

What is the difference between `bower install foundation` and `foundation new MY_PROJECT`

On the foundation github page the recommended way to install foundation is bower install foundation yet in their documentation they suggest using foundation new MY_PROJECT. On the documentation page the first method is only listed under the "using a task runner" section. Both methods give different file structures. Are both...

grunt-bower-install won't include my css files

I'm quite new to bower and grunt, so basic things work bad for me. I've bower install --save bootstrap and want grunt-bower-install to update my js & css files, according to documentation It works great with the .js files, and I have successfully updated my index.html <!-- bower:js --> <script...

npm install: 'bower install' exited with error code 1

I want to programm widgets for XBee ZigBee Cloud Kit. To do it, I need first to set up everything. I'm using this guide. After failing repeatedly the automated setup I started the Manual setup. I did install the Requirements. So everything so far went good until the last point:...

Distribution of js library [closed]

I want to create a js library for helping with jasmine tests. What is the js-way of distributing such library? Node modules? Bower? Both? Something else? What is the industry standard in js world?

prevent bower from updating angular version

I'm trying to install angular-filter in my project using bower but the bower install git:// keeps updating my version of angular from 1.3.15 to angular 1.4. Here is my bower.json "name": "eeee", "version": "0.1.0", "dependencies": { "angular": ">=1.3.*", "json3": "~3.3.1", "es5-shim": "~3.0.1", "jquery": "~2.1.4", "angular-resource": ">=1.3.*", "angular-cookies": ">=1.3.*", "angular-sanitize": ">=1.3.*",...

Kendo UI with bower and TeamCity (CI)

I've got an existing project running that I have added kendo ui to via bower. We have a licensed copy so I am using the professional package. Our TeamCity server is running Windows with many build agents, how can I pass the credentials to bower to authenticate with the kendo...

Can't install packages -g via nvm (local profile, not sudo)

I'm using nvm running node version 0.12.2. I try and install bower globally: [email protected]:~/www/busarama/src$ npm install -g bower npm ERR! tar.unpack untar error /home/karl/.npm/bower/1.4.1/package.tgz npm ERR! Linux 3.16.0-36-generic npm ERR! argv "/home/karl/.nvm/versions/node/v0.12.2/bin/node" "/home/karl/.nvm/versions/node/v0.12.2/bin/npm" "install" "-g" "bower" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! path /usr/local/lib/node_modules npm ERR!...

How to include only specific parts of UI Bootstrap using Grunt

I'm using the accordion, tooltips and transition components of UI Bootstrap. I can create a custom build with the online tool on the UI Bootstrap website, which will create a minified and non-minified JS file containing only the components I selected, without overhead. However, I don't want to use the...

How to include jQuery to my app?

I'm developing the app based on angular gulp generator. I want to use the angular-ui and bootstrap components. I am able to build the application, but generated index.html file contains script tags for boostrap, angular ui but jquery is missing here. I have jquery in bower.js file and I ran...

Gulp - TypeError: Cannot assign to read only property 'cwd' of bower / bootstrap.css

I'm just getting to grips with Gulp.js and this is the only error I can't seem to get around. I have install bootstrap via bower, and I'm trying to minify the bootstrap css. Here's my gulp task; gulp.task('minifycss', function() { gulp.src('www/css/animate.css', 'www/bower_components/bootstrap/dist/css/bootstrap.css') .pipe(minifycss({compatibility: 'ie8'})) .pipe(gulp.dest('www-deploy/css/')); }); However when I run...

Bower: Install package that doesn't have bower.json file

I'm trying to get Bower to install this javascript: I use: bower install [email protected]:markmalek/Fixed-Header-Table.git --save It installs the package into bower-components, and even adds it to my project's bower.json, but it doesn't add the to my html. I'm guessing it's because that particular git repo doesn't contain a bower.json...

Do Yo and Bower overlap in terms of functionality, and if they do is there an advantage to using both?

I have been using Gulp for a while now and recently started using Bower. I am now looking into whether I should also be using Yo for scaffolding, but I'm not clear on the exact purpose of Yo. I'm confused because when Yo creates an app it seems to install...

Proper Semantic-UI / Bower / Rails 4 configuration

I'm struggling to properly install and configure Semantic-UI using bower in my Rails 4 app. Until now, here's what I've done: Gemfile: gem "less-rails" gem "therubyracer" .bowerrc file: { "directory": "vendor/assets/components" } bower.json: { "name": "app", "version": "0.0.0", "homepage": "", "private": true, "ignore": [ "**/.*", "node_modules", "bower_components", "vendor/assets/components", "test", "tests"...

How to install Polymer iron-elements using bower?

How to install polymer iron and paper elements for Polymer 0.9 using bower? Tried using bower to install in a way similar to core-elements but fails. Migration guide doesn't provide any information on upgrading core/iron or paper elements. bower install Polymer/iron-elements#^0.9.0 bower iron-elements#^0.9.0 not-cached git://^0.9.0 bower iron-elements#^0.9.0 resolve git://^0.9.0 bower...

SyntaxError: Unexpected end of input error using Gulp and main-bower-files package

I keep getting an error trying to inject the main bower files into my build folder index.html I am using the main-bower-files NPM package. My code looks like this: //requires var gulp = require('gulp'); var inject = require('gulp-inject'); var config = require('./gulp-config'); var mainBowerFiles = require('main-bower-files'); gulp.task('default', ['move'], function() {...

'Object.keys called on non-object' error when upgrading bower from version 1.3.12 to version 1.4.1

After I ran bower install, I got a warning: ┌───────────────────────────────────────────┐ │ Update available: 1.4.1 (current: 1.3.12) │ │ Run npm update -g bower to update. │ └───────────────────────────────────────────┘ If I follow the instruction and run the update command, I got a list of 'Object.keys called on non-object' error > npm update...

Cannot find bower packages

I installed Yeoman on snow leopard OSX 6.8. When I run 'grunt serve' I get the following error (it can't find my bower packages): Dream-2:app1 goldenheart$ grunt serve Running "serve" task Running "clean:server" (clean) task >> 1 path cleaned. Running "wiredep:app" (wiredep) task Warning: Error: Cannot find where you keep...

Error to install insights ( install bower ) { OpenEdX , Ubuntu Server 12.04 }

I'm trying to install OpenEdX on my own SERVER (OS : Linux Ubuntu Server 12.04 ) , and i got same errors . Can anyone help me? TASK: [ insights | install bower dependencies]************************** failed: [localhost] => {"changed"; true, "cmd"; "./edx/app/insights/nodeenvs/insights/bin/activate && /edx/app/insights/edx_analystics_dashboard/node_modules/.bin/bower install --production --config.interactive=false", "delta": "0:02:32.056040", "ende"; "2015-05-01...

Cannot find .bowerrc file

I am trying to install Learning Locker on my Ubuntu 14.04 which runs apache2 and php5, I have installed all the dependencies listed here. How ever when I run composer (actually its composer.phar, I dont know why) it shows that its downloading but bower shows ECONNRESET errors all along. So...

grunt bower-install of a shimmed bower dependency

I've bower installed some Git repo that I need for my application and I did it by doing the following: bower install git:// --save grunt bower-install and then I get the following error: cooltool was not injected in your file. Please go take a look in "app/bower_components/cooltool" for the file...

jQuery dependency above Angular one: WARNING: Tried to load angular more than once

I am working on a Yeoman Angular-generated folder. I installed through Bower a module that requires jQuery. Grunt's wiredep places the jQuery dependency above the AngularJS in the index.html, as follows: <!-- build:js(.) scripts/vendor.js --> <!-- bower:js --> <script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular-animate/angular-animate.js"></script> ... <!-- endbower --> <!--...

Ember-cli how to add FileSaverjs and Blobjs

I looked at this and that link. I bower installed file-saver and Blob. I am having a similar problem with both components so I will just talk about one. When I do import FileSaver from 'file-saver'; I get the following error. Error while processing route: some.route Could not find module...

Strange npm behavior when installing packages like grunt

I run the following command in my bash and I get the related results: [email protected]:~$ sudo npm install -g grunt-cli /usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt [email protected] /usr/local/lib/node_modules/grunt-cli ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected], [email protected]) and [email protected]:~$ grunt /usr/bin/env: node: No such file or directory I also have try to install...

Difference between bower, browserify, requirejs, webpack?

I'm used to simple and small JS projects where the JS dependencies are concatenated and minified as part of the build process using something like gulp and the script tag in the html contains the hardcoded path to that minified JS file. It's not elegant and probably has several disadvantages,...

Ionic / bower / cordova - ignore files for build

My project structure is the following : MyApp - hooks - platforms - android - ios - www - js / css / templates.. - lib (including all bower components) I do have a large set of bower components added to my ionic / cordova project. The www/lib directory is...

Load libraries with wiredep

I am doing my first steps in AngulaJS. And i try load dependences via Bower and a Gulpfile. I have instaled wiredep, gulp-inject and bower. In my Gulpfile.js i have defined the next tasks: 'use strict'; var gulp = require('gulp'); var inject = require('gulp-inject'); var wiredep = require('wiredep').stream; gulp.task('inject', function()...

Bower install doesn't seem to be working (Windows 7) - not getting bower_components directory, grunt serve cannot find bower packages

I'm having problems getting bower install working. I'm running through a yo webapp generator which does scaffolds out for me. In my bower.json file, it give me two dependencies: { "name": "webapp-test", "private": true, "dependencies": { "jquery": "~1.11.1", "modernizr": "~2.8.2" } } When I run a bower install after the...

BowerStatic in Pyramid: why scripts aren't going to the end of body?

I am using pyramid_bowerstatic-0.3-py2.7, bowerstatic-0.8.1 in Pyramid 1.5.6 with SB Admin 2 bootstrap 3 theme (if that matters). When including components with, e.g. request.include(components, 'jquery') in a normally configured view (which uses template): @view_config(route_name='list', renderer='templates/', permission="view") def list_view(self): request.include(components, 'jquery') return {'project': 'My', } where (in the project __init__): components...

occassional Unknown provider: $templateRequestProvider <- $templateRequest <- $route <- ngViewDirective error

I'm working on an angular app, and it works completely fine on computer#1, and when I've cloned the git repo on computer#2 and performed my npm install, bower install, and grunt bower-install, things fail to load. After googling around, many have cited that this is a common side effect of...

How to load the project into Github

I need to load my project into Github. So I use GitHub for windows to do it, and I have a problem, when I do it, GitHub writes me "Commit is failed". My project uses bower and nodeJS, and I understand that problems is about it, cause I download pure...