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.
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
When I upgrade a version in bower.json from say 2.8.1 to 2.8.2 and run bower install it doesn't actually install the new version. I can run bower install -f but that re-installs all packges.
Can I make bower install only when necesary?
https://bower.io/docs/api/#update
So this could help:
bower update --save <package-name>
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
Unable to run node_modules/.bin/browserifyinc. Ensure you have installed it with npm.
(in /Users/labuser/Downloads/betfair_nav_demo-master/app/assets/javascripts/application.js)
I am using Ampersand JS with Rails application.
gem 'rails', '4.2.1'
gem "browserify-rails", '1.2.0'
I have installed
npm install ampersand -g
npm install browserify --save-dev
npm install underscore --save
My Rails app is working without browserify-rails gem.
Try running
npm install browserify-incremental
It is best, however, to save this to a package.json file (so that when you deploy your code, you only have to run npm install, as you would bundle install).
If you don't have a package.json file, create one by running:
npm init
in your rails project's root directory.
Once you've done this, or if you already have a package.json file, you can save packages to it by running:
npm install --save <package_name>
If you have existing node packages installed in this project, npm init will automatically add these to your package.json file. If npm init prompts you for something that you're not sure of, or is not applicable to your application, just press enter and tidy up the package.json file afterwards. You should only ever need to run npm init once.
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.