Angular2:我在安装npm包时出现以下错误

时间:2017-01-30 12:43:28

标签: angular

我是Angular2的新手。尝试使用npm install命令安装包json组件。安装后,我收到以下错误。

enter image description here

由于此错误,我无法编译我的应用程序。它提供了100多个编译错误。如下错误

  

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

1 个答案:

答案 0 :(得分:1)

tsconfig.json内设置experimentalDecoratorstrue

{
  "compilerOptions": {
    ...
    "experimentalDecorators": true,
  }
}