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