I am trying to install a local Jquery ui through bower.
I have a local folder called jquery-ui and ran the following command
bower install jquery-ui/jquery-ui.min.css --save
It gave me the following errors
bower jquery-ui.min.css#* resolve git://github.com/jquery-ui/jquery-ui.min.css.git#*
bower jquery-ui.min.css#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jquery-ui/jquery-ui.min.css.git", exit code of #128
I am not sure why bower look for the remove git, all I need is to add the local file into bower. Do I miss something here? Thanks a lot!
You should try:
bower install ./jquery-ui/jquery-ui.min.css --save
Related
I am trying to install bower packages, in the site of bower is written I must install them following way:
bower install <package>
But it doesn't want to install this kinda way. Instead,it tells me something like:
ENOGIT git is not installed or not in the PATH
How to deal with this kinda problem?
Thank you.
you have to install git, some package in bower depend on git to be installed
As an example I want to install masonry (from http://masonry.desandro.com) so I type:
bower install masonry --save
I get
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower not-cached https://github.com/Aspera/angular-storage.git#~0.5.0
bower resolve https://github.com/Aspera/angular-storage.git#~0.5.0
bower not-cached https://github.com/desandro/masonry.git#*
bower resolve https://github.com/desandro/masonry.git#*
Username for 'https://github.com': bower checkout masonry#v4.1.1
bower resolved https://github.com/desandro/masonry.git#4.1.1
bower not-cached https://github.com/desandro/get-size.git#^2.0.2
bower resolve https://github.com/desandro/get-size.git#^2.0.2
bower not-cached https://github.com/metafizzy/outlayer.git#^2.1.0
bower resolve https://github.com/metafizzy/outlayer.git#^2.1.0
bower checkout get-size#v2.0.2
bower checkout outlayer#v2.1.0
bower resolved https://github.com/desandro/get-size.git#2.0.2
bower resolved https://github.com/metafizzy/outlayer.git#2.1.0
bower not-cached https://github.com/metafizzy/fizzy-ui-utils.git#^2.0.0
bower resolve https://github.com/metafizzy/fizzy-ui-utils.git#^2.0.0
bower not-cached https://github.com/metafizzy/ev-emitter.git#^1.0.0
bower resolve https://github.com/metafizzy/ev-emitter.git#^1.0.0
bower checkout ev-emitter#v1.0.3
bower checkout fizzy-ui-utils#v2.0.3
bower resolved https://github.com/metafizzy/ev-emitter.git#1.0.3
bower resolved https://github.com/metafizzy/fizzy-ui-utils.git#2.0.3
bower not-cached https://github.com/desandro/matches-selector.git#~2.0.0
bower resolve https://github.com/desandro/matches-selector.git#~2.0.0
bower checkout desandro-matches-selector#v2.0.1
bower resolved https://github.com/desandro/matches-selector.git#2.0.1
Then it asks for my password:
Password for 'https://github.com':
bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/Aspera/angular-storage.git", exit code of #128 remote: Repository not found. fatal: Authentication failed for 'https://github.com/Aspera/angular-storage.git/'
Additional error details:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Aspera/angular-storage.git/'
What the !*$#! is going on here I didn't want angular-storage
and my password is valid but it didn't give me a chance to enter my username.
I have re-installed bower but it is still messed up. Was fine before I foolishly let macOS Sierra in through the door.
OK herewith the problem:
bower.json contained "angular-storage": "~0.5.0" in the dependencies list but I had deleted angular-storage from bower-components in favour of a0-angular-storage.
Cue erratic behaviour of bower, so obviously when removing items from bower_components one also has to delete the relevant dependency from bower.json.
Also the bower.json had the line:
"private": true
which I removed, and now it no longer asks me to login.
I'm trying to install Angular2 with Bower with command bower install -S angular2 and have next messages in console:
$ bower install -S angular2
bower angular2#* cached git://github.com/angular/bower-angular.git#1.4.8
bower angular2#* validate 1.4.8 against git://github.com/angular/bower-angular.git#*
bower angular#~1.4.8 install angular#1.4.8
angular#1.4.8 bower_components/angular
My bower.json file now contains next info in dependencies section:
"dependencies": {
"angular": "angular2#~1.4.8"
}
And I have Angular 1.4.8 after that in bower_components path.
So, how to install Angular2 beta with Bower?
I have installed it from github with the command bower install git#github.com:angular/angular.git:
$ bower install git#github.com:angular/angular.git
bower angular#* not-cached git#github.com:angular/angular.git#*
bower angular#* resolve git#github.com:angular/angular.git#*
bower angular#* checkout 2.0.0-build.ffbcb26.js
bower angular#* invalid-meta angular is missing "main" entry in bower.json
bower angular#* invalid-meta angular is missing "ignore" entry in bower.json
bower angular#* resolved git#github.com:angular/angular.git#2.0.0-build.ffbcb26.js
bower angular#~2.0.0-build.ffbcb26.js install angular#2.0.0-build.ffbcb26.js
angular#2.0.0-build.ffbcb26.js bower_components/angular
I advise you not to use Bower. Bower is used to get your packages in your project folder, that's it.
Try to look up JSPM (http://jspm.io). It does a lot more than getting packages in your project. It takes care of ES6 to ES5. And loads all your packages in one time using SystemJS in your browser with just a couple lines of code.
you can install jspm using npm:
npm init
npm install (-g) jspm // -g only if you want jspm globally installed
jspm init
This worked for me, for Angular 2 bower install angular2-build
When I do a bower install jquery-ui --save , bower_modules/jquery-ui is created.
This repo does not contain the Gruntfile.js
Does bower install delete files from the repo?
Is there a way to configure this?
The jquery-ui used by this bower package points to https://github.com/components/jqueryui and not to https://github.com/jquery/jquery-ui
This repo only contains the precompiled files from jquery-ui.
I'm using Bower on Windows 8, and I get an error whenever I try to install a package. In this case, I'm trying to install Twitter Bootstrap. So I run...
bower install bootstrap
... I get this error...
bower cloning git://github.com/twitter/bootstrap.git
bower cached git://github.com/twitter/bootstrap.git
bower fetching bootstrap
bower error status code of git: 127
There were errors, here's a summary of them:
- bootstrap status code of git: 127
CreateProcessW: The system cannot find the file specified.
I'm using Git version 1.7.9.mysgit.0 (insalled via Rails Installer).
What is causing this error and how can I fix it?
To further isolate this issue, I have run this command successfully on Cloud9 IDE
Have you tried to make bower cache-clean and then bower install bootstrap, worked here for a Windows Server 2008.