How to Install Bower on Ubuntu


Bower is a bundled supervisor for the web and offers a conventional technique for the drawbacks in entrance-finish package management. It basically maintains and monitors all packages and examines new updates. Bower also makes use of a take place file called bower.Json to keep track of applications. This article explains about -“How to install bower on Ubuntu”.

To install bower, we require pre-installed Node.js and NPM. To verify the node.js version, use the following command-

$ node -v

The sample output should be like this-

v6.9.2

To verify the NPM version, use the following command

$ npm -v

The sample output should be like this-

3.10.9

If you wants to install Node.js and NPM, read this article

To install bower, use the following command –

$ sudo npm install -g bower

The sample output should be like this –

/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower
/usr/lib
`-- bower@1.8.0 

To get more information about bower, use the following command –

Usage:

    bower  [] []
Commands:

    cache                   Manage bower cache
    help                    Display help information about Bower
    home                    Opens a package homepage into your favorite browser
    info                    Info of a particular package
    init                    Interactively create a bower.json file
    install                 Install a package locally
    link                    Symlink a package folder
    list                    List local packages - and possible updates
    login                   Authenticate with GitHub and store credentials
    lookup                  Look up a single package URL by name
    prune                   Removes local extraneous packages
    register                Register a package
    search                  Search for packages by name
    update                  Update a local package
    uninstall               Remove a local package
    unregister              Remove a package from the registry
    version                 Bump a package version

Options:

    -f, --force             Makes various commands more forceful
    -j, --json              Output consumable JSON
    -l, --loglevel          What level of logs to report
    -o, --offline           Do not hit the network
    -q, --quiet             Only output important information
    -s, --silent            Do not output anything, besides errors
    -V, --verbose           Makes output more verbose
    --allow-root            Allows running commands as root
    -v, --version           Output Bower version
    --no-color              Disable colors

See 'bower help ' for more information on a specific command.

To install bootstrap with bower, use the following command –

$ bower install git://github.com/twbs/bootstrap

The sample output should be like this –

bower not-cached    git://github.com/twbs/bootstrap.git#*
bower resolve       git://github.com/twbs/bootstrap.git#*

bower download      https://github.com/twbs/bootstrap/archive/v3.3.7.tar.gz
bower progress      bootstrap#* received 0.1MB of 4.0MB downloaded, 3%
bower progress      bootstrap#* received 0.2MB of 4.0MB downloaded, 4%
bower progress      bootstrap#* received 0.2MB of 4.0MB downloaded, 4%
bower progress      bootstrap#* received 0.2MB of 4.0MB downloaded, 5%
bower progress      bootstrap#* received 0.2MB of 4.0MB downloaded, 5%
bower progress      bootstrap#* received 0.2MB of 4.0MB downloaded, 6%
bower progress      bootstrap#* received 0.3MB of 4.0MB downloaded, 6%
bower progress      bootstrap#* received 0.3MB of 4.0MB downloaded, 7%
.....................................................................

After this article, you will be able to understand how to Install Bower on Ubuntu . In our next articles, we will come up with more Linux based tricks and tips. Keep reading!

Other Interesting Posts

Advertisements