【发布时间】:2023-02-12 11:36:32
【问题描述】:
我有角度版本 15.0.3。 当我尝试使用命令 npm install ngx-spinner 安装 ngx-spinner 时,出现错误
sashamaksyutenko@MacBook-Pro Client % npm install ngx-spinner
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: client@0.0.0
npm ERR! Found: @angular/common@15.0.4
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^15.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^14.0.0" from ngx-spinner@14.0.0
npm ERR! node_modules/ngx-spinner
npm ERR! ngx-spinner@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/sashamaksyutenko/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sashamaksyutenko/.npm/_logs/2022-12-21T11_40_00_054Z-debug-0.log
sashamaksyutenko@MacBook-Pro Client %
【问题讨论】:
标签: angular15 ngx-spinner