Installing Bootstrap via Bower
Bower is a package management system for client-side programming. You can use Bower to install Bootstrap's source code and keep it up to date more easily. Initiate Bower by running the following command in your console:
bower init
Answer the questions like those shown in the following screenshot:
After the preceding steps, a bower.json
file is created. Then run the following command in your console:
bower install bootstrap#4 --save-dev
The preceding command downloads Bootstrap to the bower_components
folder. Notice that jQuery and Tether are also installed since Bootstrap depends on these libraries.
The --save-dev
flag writes down Bootstrap as a devDependency
into the bower.json
file.