本文档很难回答我的问题.我不明白这些解释.有人可以用简单的话说吗?也许有例子,如果难以选择简单的单词?
编辑还补充说peerDependencies,这是密切相关的,可能会引起混淆.
我试图运行从github下载的项目.不幸的是,在npm install以下警告显示.我试图根据这个问题更改版本.但是,我遇到了问题,因为有些软件包需要多个版本的其他软件包.考虑以下两行:
npm WARN @angular/cdk@2.0.0-beta.10 requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/forms@4.3.6 requires a peer of @angular/core@4.3.6 but none is installed. You must install peer dependencies yourself.
Run Code Online (Sandbox Code Playgroud)
因此,安装某些软件包会导致依赖项列表大幅增加.
有没有人有办法解决吗?
npm WARN @angular/animations@4.3.6 requires a peer of @angular/core@4.3.6 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@2.0.0-beta.10 requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer …Run Code Online (Sandbox Code Playgroud)