cnpm installnpm
環境安裝好後,快速建立一個新項目,如在D盤下新建一個angularProject項目,只要在本地目錄下 spa
ng new angularProject
angularProject是本身命名的項目名稱一、ng new demo01 --skip-install
npm依賴安裝成功後,code
運行 ng serve --port 4201blog