简体   繁体   English

为什么NPM会给我关于未满足的依赖项的未满足的依赖项警告?

[英]Why is NPM giving me unmet dependency warnings for dependencies that actually are met?

I'm trying to get angular2 up and running with typescript and node, but it keeps giving me warnings about unmet peer dependencies. 我正在尝试使用angularscript和node来启动angular2并运行它,但是它一直向我发出有关未满足的对等依赖项的警告。 However, this suggests they are available: 但是,这表明它们可用:

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',

How can I make these warnings go away? 如何使这些警告消失?

npm view在注册表中显示有关程序包的信息,而不显示是否已安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM