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)
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.
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
Every time I install a new bower package on my Ember CLI pack, I got
Missing bower packages:
Package: ember
* Specified: 1.11.0
* Installed: 1.10.0
then I run bower install ember#1.11.0.
Unable to find a suitable version for ember, please choose one:
1) ember#1.10.0 which resolved to 1.10.0 and is required by test-addon
2) ember#>= 1.8.1 < 2.0.0 which resolved to 1.11.0 and is required by ember-data#1.0.0-beta.16
3) ember#> 1.5.0-beta.3 which resolved to 1.11.0 and is required by ember-resolver#0.1.15
4) ember#>=1.4 <2 which resolved to 1.11.0 and is required by ember-cli-shims#0.0.3
5) ember#1.11.0 which resolved to 1.11.0Prefix the choice with ! to persist it to bower.json
I choose 5 (Why this hassle if I explicit added the desired version), then it works again.
But next time if I install a new bower package, I have to do it again.
node 0.12.1
bower 1.3.12
emvber cli 0.2.2
You may use -F flag to force to use latest version:
bower install -F
(see docs)
In this case bower didn't asking anything about versions.
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?
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.