bower

How to register a local git package in Bower?

别等时光非礼了梦想. 提交于 2019-11-27 10:47:07
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 add a package I have created at C:/mypackage which is a git repository with versions tagged. When I do bower install --save C:/mypackage it properly adds it to project but it doesn't add it to my component.json. I am trying bower register mypackage C:/mypackage but it keeps giving me bower error Incorrect format What am I doing wrong? el2iot2 Option 1: Public Bower

How can I invoke npm on heroku command line (to install bower components)?

我的梦境 提交于 2019-11-27 10:30:46
问题 Bower is for client side Javascript what npm is for the server side and reads a component.json file to recognize dependencies that should be fetched at deploy time so I'd be happy it heroku would run it at slug compilation time. Unfortunately I can not invoke npm or bower from a heroku console or one-off command ( heroku run "npm help" ) ( heroku run bash -> npm help ) as it's possible with ruby's rake. I've put npm and node (latest/x versions) in my package.json but in the engines section,

Bower: Install 2 versions of jQuery

北慕城南 提交于 2019-11-27 10:23:20
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 by the second because they are the same component In the dependencies part of your bower.json you can have something like this: "dependencies": { "jquery": "2.0.0", "jquery-1.9.1": "http://code.jquery.com/jquery-1.9.1.js" } One shouldn't normally have to do this, but sometimes you have to maintain / migrate an existing website that (for whatever

bower command not found windows

▼魔方 西西 提交于 2019-11-27 10:17:18
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 option) Nodejs I've successfully ran npm install -g bower grunt-cli gem install foundation and these have ran fine. I've looked in the npm/node_modules directory and I can see bower folder in there. Every time I type bower either into the cmd , ruby cmd or git bash I get command not recognized I've set the git path in the environment variables. What's annoying is the instruction on the bower site. It

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

你离开我真会死。 提交于 2019-11-27 10:17:05
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 the same problem, although I am not able to draw a line between npm and bower-volo . strangeloops A description that best describes the difference between npm and bower is: npm manages JavaScript modules called packages and Bower manages front-end components (i.e. css, html, and JavaScript) called components. npm is also used to install bower.

Using Grunt, Bower, Gulp, NPM with Visual Studio 2015 for a ASP.NET 4.5 Project

老子叫甜甜 提交于 2019-11-27 09:59:07
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 these tools. I'd like to use bower instead of nuget to manage client side packages. I can find information about using these tools with Visual Studio 2013 (see this question for example). But I guess the procedure is different for Visual Studio 2015 since it has built in support for these tools. Robert Hegner While Liviu Costea's answer is correct, it still took me quite some time to figure out how

Node JS NPM modules installed but command not recognized

我们两清 提交于 2019-11-27 09:57:29
问题 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, operable program or batch file. I have checked the installation path C:\Users\XXXXX\AppData\Roaming\npm\node_modules which has all the old installed modules. I have tried to uninstall them and reinstall

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

夙愿已清 提交于 2019-11-27 09:40:27
问题 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 bower (1.3.9), I tried to run the command sp:bower:install which belongs to Symfony2 SpBowerBundle from console as root : Symfony > sp:bower:install Installing bower dependencies for "TemplateBundle" into "/var/www/html/tanane/src/Tanane/TemplateBundle/Resources/config/bower/../../public

How to configure Grunt to replace Bower dependencies by its minified versions

戏子无情 提交于 2019-11-27 09:38:57
问题 I am new to Yeoman/Grunt/Bower. I have a bower.json file that defines the following dependencies: bower.json { "dependencies": { "angular": "~1.0.7", "jquery": "~1.8.0", "bootstrap": "~2.3.2", "angular-grid": "~2.0.5" } } In my html file I am using the non-minified versions of those libraries, which I installed via the command bower install index.html <script src="components/jquery/jquery.js"></script> <script src="components/bootstrap/docs/assets/js/bootstrap.js"></script> <script src=

WARNING: Tried to load angular more than once. when I include JQuery

眉间皱痕 提交于 2019-11-27 09:16:17
I am building an yeoman app with an angular-generator. The js libraries included in my index.html file are: <script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/modernizr/modernizr.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script> <script src="bower_components/d3/d3.js"></script> <script src="bower_components/select2/select2.js"></script> <script src="bower_components/angular-ui-select2/src/select2.js"></script> The problem only occurs if