npm uninstall -g @angular/cli
Clear Cache:
npm cache clean --force
npm cache verify
Install Angular CLI:
npm install -g @angular/cli
npm uninstall -g @angular/cli
npm cache clean --force
npm cache verify
npm install -g @angular/cli
ionic start test blank --type=ionic-angular --capacitor
cd test
ionic build
ionic cordova platform add android
ionic cap add android
ionic start test blank --type=ionic-angular --cordova
cd test
ionic build
ionic cordova platform add android
ionic cap add android
C: \ionic repair
第 1 步:從系統中卸載 NodeJs 應用
第 2 步:轉到 programFiles/nodejs ->刪除 node_modules 文件夾
第 3 步:重新安裝 NodeJs 應用 (Download)
簡介:
Bootstrap 4 is the latest version of Bootstrap. Bootstrap is a free front-end framework for quick and simple web development. Bootstrap helps to create responsive designs in less time. Bootstrap contains many HTML and CSS based templates or components like typography, buttons, forms, tables, image carousels, navigation, modals, pagination, spinners, alerts, icons, dropdowns, cards and many more.
如果你是從零開始的新學習者,你必須先把開發環境安裝好,Node.js 及 Angular CLI 。
Getting started: Creating a hello world application in angular 8
要安裝 Bootstrap 4 需要先安裝 jQuery 及 popper.js 才能正常使用. 下方說明安裝的步驟
If you don’t want to install and host bootstrap, you can add it from CDN(Content Delivery Network).
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script><nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" href="#">DevConquer</a>
<!-- Links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
</nav>
<div class="jumbotron">
<h1 class="text-center">Welcome to angular 8 and bootstrap 4</h1>
</div>Run your project from a terminal by the ng serve command:
Open your application from a browser by the following URL:
http://localhost:4200

Install jquery npm package from a terminal by the following command:
npm install jquery --save**Note: –save flag will add the dependency in package.json

Install bootstrap npm package from a terminal by the following command:
npm install bootstrap@4.3.1 --save
Install popper.js npm package from a terminal by the following command:
npm install popper.js --save
Add the following styles and scripts code in the angular.json file from your project.
"styles": [
"src/styles.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/popper.js/dist/umd/popper.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
]
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" href="#">DevConquer</a>
<!-- Links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
</nav>
<div class="jumbotron">
<h1 class="text-center">Welcome to angular 8 and bootstrap 4</h1>
</div>Run your project from a terminal by the ng serve command.
Open your application from a browser by the following URL:
