2017-04-05 3 views
0

私は今angle 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 

いつものように使用して「新しいngの」私は角4プロジェクトを作成することができ、以下のようNPMを使用して、すべてのパッケージを更新しましたか?

+0

の新しいアプリの--ng4 ngの "使用は、最新の角度CLIバージョンhttps://github.com/angular/angular-cli/issues/3962のデフォルトであるように思わ#issuecomment-290449779 –

答えて

0

この記事の最新の角度CLI npm install -g @angular/cli最新のインストールはデフォルトng newことで1.0.0

は角4アプリを生成しますです。

角度4アプリを強制するには、

+0

ng new sampleapp --ng4 –

+0

Angular cli 1.0.0はデフォルトで角度4を使用します。 --ng4フラグを含む答えを編集しました。 –

関連する問題