IT:AD:Bower:HowTo:Download Packages

  • Open a command line
  • Even though it is a node.js application, you don't need to fire up node.js first. Just type:

bower install {packagename}

Eg:

bower install angular
or

bower install durandal.

Whereas angular is pretty self-reliant (it doesn't depend on other packages), durandal is much more modular.

And that's where you see how useful it is – bower recursively downloads the packages it depends on:

c:\tmp\bower.demo\bower_components>dir

 Directory of c:\tmp\bower.demo\bower_components

26/10/2014  05:31 p.m.    <DIR>          .
26/10/2014  05:31 p.m.    <DIR>          ..
26/10/2014  05:24 p.m.    <DIR>          angular
26/10/2014  05:31 p.m.    <DIR>          durandal
26/10/2014  05:31 p.m.    <DIR>          jquery
26/10/2014  05:31 p.m.    <DIR>          knockout.js
26/10/2014  05:31 p.m.    <DIR>          requirejs
26/10/2014  05:31 p.m.    <DIR>          requirejs-text
               0 File(s)              0 bytes
               8 Dir(s)  108,238,192,640 bytes free

Neat.

  • /home/skysigal/public_html/data/pages/it/ad/bower/howto/download_packages.txt
  • Last modified: 2023/11/04 03:38
  • by 127.0.0.1