- Bootstrap 4 Cookbook
- Ajdin Imsirovic
- 290字
- 2021-07-02 21:07:54
How to do it...
- Inspect the versions of Node and npm installed on our virtual machine:

Inspect the available versions of Bootstrap to be installed:

The preceding command shows us that we can either install Bootstrap 3 (latest stable version) or Bootstrap 4 (latest alpha version); we will install Bootstrap 4.
- To install the latest alpha version of Bootstrap 4, run the following command:

Running the preceding command will almost instantly install the newest version of Bootstrap 4 in our node_modules directory. Inspect the directory's contents with ll (c9), or dir (Windows).
- Navigate to the node_modules/bootstrap folder:
cd node_modules/bootstrap
- Install all the dependencies via npm install:
npm install
After running the npm install command, a number of dependencies will be installed, just as listed in the package.json file. The installation will take some time. The reason why it takes so long is mostly due to the installation of the PhantomJS headless browser, which is used for testing in Bootstrap 4.
Once the installation process is completed, you will be greeted with a large number of folders and files. There are about 40 folders inside the node_modules folder. These folders house specific dependencies, such as grunt-sass or eslint. All of these dependencies are located inside the node_modules/bootstrap/node_modules path.
Here is the structure of the files installed using the npm approach:

After the installation is completed, the dist folder contains all the CSS and JavaScript needed to run a website.
All that is left now is to add HTML pages, and correctly reference the styles and scripts from the dist folder.
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- INSTANT OpenCV Starter
- 大學計算機基礎實驗教程
- Python for Secret Agents:Volume II
- Learning Docker
- C語言程序設計案例式教程
- Mastering LibGDX Game Development
- Bootstrap 4:Responsive Web Design
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- bbPress Complete
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Unity 3D/2D移動開發實戰教程
- Android群英傳
- Domain-Driven Design in PHP