2017-04-05 70 views
0

我使用NPM的所有軟件包更新如下是否有任何特定的命令創建角度cli的角4項目?

npm install @angular/[email protected] @angular/[email protected] 
@angular/[email protected] @angular/[email protected] @angular/[email protected] 
@angular/[email protected] @angular/[email protected] 
@angular/[email protected] @angular/[email protected] 
@angular/[email protected] @angular/[email protected] [email protected] --save 

現在像往常一樣使用「納克新的」我能創造一個角4項目?

+0

似乎是最新的角CLI版本的默認https://github.com/angular/angular-cli/issues/3962 #issuecomment-290449779 –

回答

0

安裝最新的角CLI npm install -g @angular/cli最新的這篇文章是1.0.0

默認ng new將產生角4應用程序。

要強制角4的應用程序,使用「納克新的應用程序--ng4」

+0

ng新的sampleapp --ng4 –

+0

Angular cli 1.0.0默認使用角度4。編輯答案以包含--ng4標誌。 –