I created a new Angular 5 project. After that I followed instructions given on Angular CLI GitHub page to use Bootstrap 4.0.0 with Angular 5.2.2. I use \'npm install bootstrap\'
You can add ngbootstrap by using the command
ng add @ng-bootstrap/schematics by adding schematics it will add necessory import to angular.json file.