2017-01-30 36 views
1

Angular2の新機能です。 npm installコマンドを使用してパッケージjsonコンポーネントをインストールしようとしています。インストール後、私は次のエラーになります。このため、エラーのAngular2:npmパッケージをインストール中にエラーが発生しました

enter image description here

、私は自分のアプリケーションをコンパイルすることができません。 100を超えるコンパイルエラーが発生します。あなたのtsconfig.jsonインサイド

Error 171 '(' expected. project directory\node_modules\rxjs\operator\concat.d.ts

Error 289 Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' project directory agGridNg2.ngfactory.ts

+0

をあなたがここにあなたのパッケージのJSONコンテンツを追加することはできますか?少なくとも「依存性」、「devDependencies」および「peerDependencies」 – DDRamone

+0

「依存性」:{ "@角度/共通": "〜2.1.0"、 "@角度/コンパイラ": "〜2.1.0"、 "@ angle/core": "〜2.1.0"、 "angular2-text-mask": "2.1.0"、 "ブートストラップ": "^ 3.3.7"、 "core-js": "^ 「0.1.2」、「0.1.24」、 「reflect-metadata」:「^ 0.1.8」、 「rxjs」:「5.0.0-beta.12」、 「systemjs」、 : "0.19.39"、 "zone.js": "^ 0.6.25" }、 – sanni

+0

私は最大長のためにいくつかの依存関係を追加しています – sanni

答えて

1

以下のようなエラーがtrueexperimentalDecoratorsを設定します。

{ 
    "compilerOptions": { 
    ... 
    "experimentalDecorators": true, 
    } 
} 
関連する問題