包 [email protected] 不满足其同级包的对等依赖性要求?

2024-05-14

我正在尝试在我的 Angular 2 应用程序中安装 @ngrx/store 模块。我正在使用 npm install 并收到以下错误:

npm ERR! peerinvalid The package [email protected] /cdn-cgi/l/email-protection does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] /cdn-cgi/l/email-protection wants [email protected] /cdn-cgi/l/email-protection
npm ERR! peerinvalid Peer @angular/[email protected] /cdn-cgi/l/email-protection wants [email protected] /cdn-cgi/l/email-protection
npm ERR! peerinvalid Peer [email protected] /cdn-cgi/l/email-protection wants [email protected] /cdn-cgi/l/email-protection
npm ERR! peerinvalid Peer @ngrx/[email protected] /cdn-cgi/l/email-protection wants [email protected] /cdn-cgi/l/email-protection

这是否意味着我必须升级我的 angular2 模块,因为它需要较低版本[电子邮件受保护] /cdn-cgi/l/email-protection?


问题是您在同一个项目中同时拥有 beta.16 和 rc.0 作为依赖项。由于 Angular 更改了两者之间的 npm 包名称,因此您需要卸载并删除您不需要的依赖项。假设您想升级到 rc.0,请将其从 package.json 中删除并运行:

npm uninstall angular2
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

包 [email protected] 不满足其同级包的对等依赖性要求? 的相关文章