【发布时间】:2017-01-12 18:25:32
【问题描述】:
我正在尝试使用 typescript 和 node 启动 angular2 并运行,但它不断给我关于未满足的对等依赖项的警告。但是,这表明它们是可用的:
tyler@tyler-Blade-Stealth:~/projects/mockups$ npm install -g @angular/core
/usr/share/node/lib
├── @angular/core@2.4.3
├── UNMET PEER DEPENDENCY rxjs@^5.0.1
└── UNMET PEER DEPENDENCY zone.js@^0.7.2
npm WARN @angular/core@2.4.3 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @angular/core@2.4.3 requires a peer of zone.js@^0.7.2 but none was installed.
tyler@tyler-Blade-Stealth:~/projects/mockups$ npm view rxjs | grep version:
version: '5.0.3',
tyler@tyler-Blade-Stealth:~/projects/mockups$ npm view zone.js | grep version:
version: '0.7.4',
我怎样才能让这些警告消失?
【问题讨论】:
-
对等依赖项应该手动安装。所以把它们和
@angular/core一起放到你的package.json
标签: javascript angularjs node.js npm