InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Linux/Unix Command Line tutorials

  • Awk
  • Curl
  • Edit a file without changing its timestamp on Linux
  • Find which process is listening on a port on Linux
  • Get file size in bytes on Linux
  • How to delete files starting with dash/hyphen
  • How to kill unresponsive ssh session using escape sequence
  • How to show environment variable for a process id (pid)
  • How to sort using a specific field on Linux
  • How to specify environment variable for a command on Linux
  • How to zip/unzip a directory with password
  • ImageMagick
  • Impact on LC_ALL on Linux sort
  • Linux - find listening ports
  • Linux - find top directories by used disk size (excluding size of subdirectories)
  • Linux - how to run a command as different user
  • Linux - list only directories
  • Linux - providing sudo access to a users - some best practices
  • Linux - sending mail from command using mailutils
  • Linux file timestamps
  • Linux how to modify a user using usermod
  • Linux ping a port using netcat
  • Linux replace comma with newline
  • Linux screen - quick start guide
  • Linux what package provides a file
  • Linux/Unix - How to go to previous directory
  • Linux/Unix - find inode number of a file
  • Linux/Unix - truncate a large log file without deleting it
  • Linux/Unix history with date and time
  • Memcache - how to dump all keys and values on command line
  • Mongo - cli quick start guide
  • Perl command line - replace multi line comments
  • Python/Perl/Unix one liners
  • Rsync
  • Ruby gem - handy reference
  • SSH
  • Some handy linux gnu date commands
  • Use watch to monitor a command at some frequency on Linux
  • bower - installation and quick start guide
  • csvkit - parse csv file and data on Linux command line
  • ffmpeg
  • grep without regex (fixed string)
  • redis cli quick start tutorial
  • wget handy commands

Linux find

  • Find recently modified files on Linux
  • Linux - find and delete files older than 30 days
  • Linux - find files containing specific text
  • Linux find - ignore case in name
  • find - exclude directory or file pattern
 
  • Home
  • > Tutorials
  • > Linux/Unix Command Line

bower – installation and quick start guide

on Feb 26, 2016

Bower is a package manager for web front end frameworks, libraries, assets and utilities. Bower can manage components that contain HTML, CSS, JavaScript, fonts and image files. Here is a quick start guide on Linux or Mac. Note that bower requires git, node and npm.

  1. Install node and npm.
    • Mac: How to install node (node.js) on Mac
    • Ubuntu: How to install node.js on Ubuntu Linux
  2. Install bower using npm

    // Skip sudo on Mac if npm is installed as user
    $ sudo npm install -g bower
    
  3. Search available packages using bower search <query>
    $ bower search jquery
    Search results:
        jquery-ui git://github.com/components/jqueryui
        jquery.cookie git://github.com/carhartl/jquery-cookie.git
        jquery-placeholder git://github.com/mathiasbynens/jquery-placeholder.git
    ...
    ...
    
  4. Init bower project and create bower.json
    $ mkdir my_bower_project
    $ cd my_bower_project
    $ bower init
    // You can keep all defaults for the purpose of this tutorial
    $ ls
    bower.json
    $ cat bower.json
    {
      "name": "my_bower_project",
      "authors": [
        "testauthor"
      ],
      "description": "",
      "main": "",
      "moduleType": [],
      "license": "MIT",
      "homepage": "",
      "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "test",
        "tests"
      ]
    }
  5. Install bower package and save dependencies in bower.json (in my_bower_project directory)

    $ bower install jquery --save
    $ ls bower_components/
    jquery 
    $ ls bower_components/jqyery/
    AUTHORS.txt	LICENSE.txt	README.md	bower.json	dist		src
    
  6. Update packages (based on bower.json)

    $ bower update
    
  7. Uninstall a package (say jquery)

    $ bower uninstall jquery
    

    Uninstall a package (say jquery) and save state in bower.json

    $ bower uninstall jquery --save
    

Suggested posts:

  1. How to use CasperJS to automate website testing
  2. Polymer custom element tag – hello world tutorial
  3. CSS max-width – limit maximum wodth of an element
  4. jQuery – find total number of DOM elements
  5. Android chrome – create website bookmark on home screen
  6. Python re search vs match
  7. Embed youtube video with javascript on-click lazy loading approach
  8. bash – how to use regex in if condition
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux/Unix Command Line, Node.js, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress