我正在获取npm resolution error使用 npm 运行的许多命令,例如:
npm update
npm install
ng add @angular/material
错误提示:
Could not resolve dependency:
peer @angular/common@"^12.0.0 || ^13.0.0-0" from @angular/cdk@12.2.2
node_modules/@angular/cdk
@angular/cdk@"^12.2.2" from the root project
这是什么意思?我也不能用npm update。我应该如何解决这个问题?
此外,--legacy-peer-deps在命令末尾添加也不能解决错误。