Bower install js use bower to manage js

Source: Internet
Author: User

About bower

Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat.
In simple terms:
The package management software is used for front-end installation of js using command lines. As we installed bower with apt-get install software, it depends on node and Npm. Therefore, we need to install nodejs, for details, refer to the official node. js website. However, if it is the same as Mac OS or Ubuntu, you can use
brew install npm
Install bower again
npm install -g bower
Install js package

Create a simple configuration file. bowerrc is used to configure the Bower installation path

{      "directory": "public/"}



Install
bower install angularjs

$ bower install angularjsbower cached        git://github.com/angular/angularjs.org.git#58ef7908d9bower validate      58ef7908d9 against git://github.com/angular/angularjs.org.git#*

If you want to install the specified version (reprinted and retained: bower install js uses bower to manage js)

    bower install 
 
  =
  
   #
   
  
 
For example
bower install jquery#1.4


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.