April 13, 2017 - javascript

Bower is a package manager for the web.

For libraries and frameworks like Bootstrap, jQuery, Font-Awesome, D3, lodash, Vue… Search the List

npm init
sudo npm install -g bower

# create bower.json with:
bower init

# Install the project dependencies listed in bower.json
bower install

bower install --save bootstrap
bower install --save jquery

Use the installed files directly like

<script src="bower_components/jquery/dist/jquery.min.js"></script>

or with Gulp …

sudo npm install --save-dev gulp main-bower-files gulp-bower