# hello world

## 產生第一個專案

### 安裝Angular-Cli

先全域下載 angular cli

&#x20;`>npm install -g @angular/cli`

### 創建一個新的Angular專案

建置專案 my-first-app 是專案名稱&#x20;

`>ng new my-first-app`

建置/執行&#x20;

`>cd my-first-app`

`>ng serve`

執行成功，會講說要用哪個網址去在瀏覽器開啟\
&#x20;EX: `http://localhost:4200/`

## 重新安裝Cli

參考資料:(<https://www.itread01.com/content/1546890665.html>)

先清除舊版的、還有快取裡的

```
npm uninstall -g angular-cli
npm cache clean --force
```
