我试图使用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',
如何让这些警告消失?
答案 0 :(得分:0)
npm view
显示有关注册表中的包的信息,而不是是否已安装。