I posted this question to the angular-bootstrap repo and was advised to talk to the bower folks...
Here's what happens when I try to use bower to install angular-bootstrap:
Charless-MacBook-Pro:orglines charlesames$ bower install angular-bootstrap
bower cached git://github.com/angular-ui/bootstrap-bower.git#0.12.0
bower validate 0.12.0 against git://github.com/angular-ui/bootstrap-bower.git#*
bower cached git://github.com/angular/bower-angular.git#1.2.28
bower validate 1.2.28 against git://github.com/angular/bower-angular.git#>=1 <1.3.0
bower not-cached git://github.com/angular/bower-angular.git#1.3.36
bower resolve git://github.com/angular/bower-angular.git#1.3.36
bower cached git://github.com/angular/bower-angular.git#1.3.12
bower validate 1.3.12 against git://github.com/angular/bower-angular.git#*
bower ENORESTARGET No tag found that was able to satisfy 1.3.36
Additional error details:
Available versions: 1.4.0-build.3818+sha.030a42e, 1.4.0-build.3817+sha.898714d,
[snip]
This is the only module I've tried that fails. Any ideas?
Related
I am trying to install progressbar.js into my rails app.
I run bower install progressbar.js
And the terminal puts out:
bower progressbar.js#* cached https://github.com/kimmobrunfeldt/progressbar.js.git#1.0.1
bower progressbar.js#* validate 1.0.1 against https://github.com/kimmobrunfeldt/progressbar.js.git#*
The files are not put into the app. When I run bower list, it has:
progressbar.js#1.0.1 extraneous
How do I install this? Other times I run bower install, it has worked no problem.
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
OK I'm trying use bower to install a package but to no avail
"bower install threejs"
Returns:
bower not-cached git://github.com/mrdoob/three.js.git#*
bower resolve git://github.com/mrdoob/three.js.git#*
bower checkout threejs#master
and it hangs there.. why??
I'm trying to install momentjs using bower:
bower install -S momentjs
But I get the following error:
bower ngStorage#0.3.0 not-cached git://github.com/agrublev/ngStorage.git#0.3.0
bower ngStorage#0.3.0 resolve git://github.com/agrublev/ngStorage.git#0.3.0
bower momentjs#2.6.0 cached git://github.com/moment/moment.git#2.6.0
bower momentjs#2.6.0 validate 2.6.0 against git://github.com/moment/moment.git#2.6.0
bower momentjs#* cached git://github.com/moment/moment.git#2.6.0
bower momentjs#* validate 2.6.0 against git://github.com/moment/moment.git#*
bower ngStorage#0.3.0 ENORESTARGET No tag found that was able to satisfy 0.3.0
Additional error details:
Available versions: 0.1.7, 0.1.6, 0.1.5
It looks like there's some sort of mix up between different repositories named ngStorage.
bower search ngStorage
Gives:
Search results:
ngstorage git://github.com/gsklee/ngStorage.git
ngStorage git://github.com/agrublev/ngStorage.git
The #0.3.0 tag exists for gsklee/ngStorage, but not for agrublev/ngStorage. (I already have the gsklee package installed for my project.)
How can I can workaround or fix whatever it is that is giving the error when trying to install momentjs?
I managed to solve this by:
1) Removing the following line from bower.json:
"ngStorage": "0.3.0"
2) Installing momentjs using:
bower install -S momentjs
3) Reinstalling ngstorage using:
bower install -S ngstorage
I suspect the issue was that I had manually edited bower.json (hadn't used -S while installing) and had the wrong entry for the ngstorage dependency (it was nsStorage, but should have been ngstorage - case sensitive)