2017-04-05 43 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标志。 –