In this recipe, we will see how to install the newest version of Bootstrap 4 using Bower.
Installing Bootstrap 4 to our Cloud9 IDE with Bower
Getting ready
Just like the previous recipe, we will make a new project on Cloud9 IDE without cloning a repo.
How to do it...
- Install bower using npm:
npm install -g bower
- Verify the bower installation:
which bower && bower -v
Note that both commands should return some values.
- Install Bootstrap 4 alpha 6:
bower install bootstrap#v4.0.0-alpha.6
- Navigate to the bootstrap folder:
cd && cd workspace/bower_components/bootstrap
- Run npm install to install all the dependencies:
npm install
Note that this will take a while.
- Run grunt verbose:
grunt -v
Now, you can easily reference the dist folder with the necessary styles and scripts for your Bootstrap website to work.