bower

bower automatically update bower.json

六眼飞鱼酱① 提交于 2019-12-02 13:54:44
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 there are none. What is going on? NOTE: bower install jquery --save does work NOTE: The option I am referring to was documented through bower help install **-S**, --save Save installed packages into the project's bower.json dependencies from bower help, save option has a capital S -S, --save Save installed packages into the project's bower.json

Installing Bower on Ubuntu

爱⌒轻易说出口 提交于 2019-12-02 13:48:27
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 such file or directory I then install Node (even though I assume that would not be unnecessary since Bower's only dependency would be NPM, correct?). Anyhow, after I install node with sudo apt-get install node any of the Bower commands, such as bower help , simply don't do anything, i.e. output nothing. How to install Bower on Ubuntu (preferably

Bower does not download git submodule (DojoX candidate plugin)

不羁的心 提交于 2019-12-02 11:21:00
I am using dojo, dijit, dojox in my project, they are installed with: $ bower install dojo dijit dojox bower dijit#* cached git://github.com/dojo/dijit.git#1.9.3 bower dijit#* validate 1.9.3 against git://github.com/dojo/dijit.git#* bower dojo#* cached git://github.com/dojo/dojo.git#1.9.3 bower dojo#* validate 1.9.3 against git://github.com/dojo/dojo.git#* bower dojox#* cached git://github.com/dojo/dojox.git#1.9.3 bower dojox#* validate 1.9.3 against git://github.com/dojo/dojox.git#* Everything is fine until I discover dojox.calendar is missing. This is a candidate plugin for DojoX and using

Bower Malformed

你离开我真会死。 提交于 2019-12-02 10:18:26
I'm learning how to use Bower. In an effort to get started, I've created a basic bower.json file whose responsibilty is to get jquery. My bower.json file looks like this: { "name": "MyProject", "version": "0.0.1", "devDependencies": { "jquery": "~2.1.0" } } When I run bower install from the directory where my bower.json file is located, I get the following error: bower EMALFORMED Failed to read C:\Projects\MyProject\bower.json What am I doing wrong? I keep looking for something to be syntactically incorrect. However, everything looks correct to me. Thank you so much for your help! Mangled

How can I move bower libraries in ASP.NET Core?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 04:56:22
问题 In my wwwroot folder I have two subfolders called lib and lib_bower . My lib_bower folder is setup in my .bowerrc file like so: { "directory": "wwwroot/lib_bower" } When I restore bower packages I'm left with this: I'd like to move the entire dist folder from bootstrap into my lib folder when I build if the files are not found. How can I do this? 回答1: You can use gulp task runner to move bootstrap folder into lib folder. Configuration code(gulpfile.js): var gulp = require('gulp'); gulp.task(

ASP.NET 5 Client Side Depdency Management - Bower

試著忘記壹切 提交于 2019-12-02 00:48:51
问题 I'm trying out the new ASP.NET 5 with MVC 6, and I'm using bower to manage all my client-side dependencies. Everything is working fine. But I have a question: When I add a dependency (let's say jQuery). It adds both the /dist and /src along with bower configuration files to the /lib folder of wwwroot . How do I make it include just the compiled source for usage? (So I can reference it in my pages via /lib/jquery/jquery.js ? 回答1: I have recently been playing in this space and following is

Bower Install error: Unable to connect & exit code of #128

帅比萌擦擦* 提交于 2019-12-02 00:37:34
问题 I am facing an issue on bower install. bower ECMDERR Failed to execute "git ls-remote --tags --heads HTTPS_LINK to bower-angular-mocks.git", exit code of #128 I followed suggestions mentioned in Git / Bower Errors: Exit Code # 128 & Failed connect. I have made the recommended proxy settings for both GIT & Bower. .bowerrc "proxy" : "PROXY_URL", "https-proxy" : "PROXY_URL" GIT http.proxy=PROXY_URL git config --global url."https://".insteadOf git:// [GIT config to use HTTPS in place of GIT] Here

Uncaught Error: Template was precompiled with an older version of Handlebars

与世无争的帅哥 提交于 2019-12-01 23:35:58
问题 I'm using Bower to manage my frontend dependencies and grunt-ember-templates to precompile handlebars templates. These are the dependencies in bower.json : "devDependencies": { "ember": "~1.3.1", "jquery": "~2.0.3", "normalize-css": "~2.1.3", "jquery.cookie": "~1.4.0", "font-awesome": "~4.0.3" } ... and in package.json : "devDependencies": { "bower": "~1.2.8", "grunt": "~0.4.2", "grunt-contrib-copy": "~0.5.0", "grunt-contrib-clean": "~0.5.0", "grunt-contrib-concat": "~0.3.0", "handlebars": "

Error installing Bower (ERR! tar.unpack untar error)

折月煮酒 提交于 2019-12-01 22:47:25
问题 I get this error when trying to install Bower. Is this a bug or am I doing it wrong? I also have 4707 lines of npm-debug.log file if needed... Thanks! This is a dump from the terminal when trying to install Bower locally, but I get the same error trying globally. npm install bower npm http GET https://registry.npmjs.org/bower npm http 304 https://registry.npmjs.org/bower npm http GET https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/archy/0.0.2 npm http GET https:/

Bower Install error: Unable to connect & exit code of #128

霸气de小男生 提交于 2019-12-01 21:57:59
I am facing an issue on bower install. bower ECMDERR Failed to execute "git ls-remote --tags --heads HTTPS_LINK to bower-angular-mocks.git", exit code of #128 I followed suggestions mentioned in Git / Bower Errors: Exit Code # 128 & Failed connect . I have made the recommended proxy settings for both GIT & Bower. .bowerrc "proxy" : "PROXY_URL", "https-proxy" : "PROXY_URL" GIT http.proxy=PROXY_URL git config --global url."https://".insteadOf git:// [GIT config to use HTTPS in place of GIT] Here is my complete error log: bower not-cached HTTPS_LINK to bower-angular.git#1.2.x bower resolve HTTPS