added NPM install option (#22833)

* added NPM install option

* fix: grammar and formatting
This commit is contained in:
Pixelposh
2018-11-27 16:36:08 +01:00
committed by Christopher McCormack
parent 57d31d2c48
commit 6eb5e7eec0

View File

@ -25,5 +25,22 @@ You will also need to add the following between the `body` tags in your code. Wi
<p>Bootstrap is now working on this page</p>
</div>
### Installing Bootstrap with a Package Manager
A popular package manager is NPM or Node Package Manager. You will need to install Node.js, which includes the Node Package Manager.
Visit [Node.js](https://nodejs.org/en/) and download the necessary files based on your OS, and then install them.
Once installed and setup, open up the command line or console, and type the following in the the project folder you wish to use Bootstrap with. At the time of writing this will install Bootstrap version 4.0.0
```html
npm install bootstrap@4.0.0 --save
```
Once NPM has finished downloading and installing Bootstrap 4, there will be a new folder called `node_modules` within your project folder if it wasn't already there.
* `/bootstrap` which contains the CSS and Sass version of our files.
* `/jquery` which is used by Bootstrap in various components.
* `/tether` which is a library for element positioning.
#### More Information
* [Bootstrap's official website](http://getbootstrap.com/getting-started/)