我的项目正在使用 ng4-loading-spinner
和 Angular 7.2.2
。我可以看到 ng4-loading-spinner
最后支持的 Angular 版本是 6.0.0
。谁能指导我如何解决此冲突,或者我应该删除 ng4-loading-spinner
并使用其他东西来旋转?
187 http fetch GET 200 https://registry.npmjs.org/@angular%2fcore 56ms (cache revalidated)
188 silly fetch manifest rxjs@^6.1.0
189 http fetch GET 200 https://registry.npmjs.org/rxjs 44ms (cache revalidated)
190 silly fetch manifest zone.js@^0.8.4
191 http fetch GET 200 https://registry.npmjs.org/zone.js 37ms (cache revalidated)
192 timing idealTree Completed in 2311ms
193 timing command:install Completed in 2326ms
194 verbose stack Error: could not resolve
194 verbose stack at PlaceDep.failPeerConflict (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:549:25)
194 verbose stack at PlaceDep.place (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:199:21)
194 verbose stack at new PlaceDep (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:73:10)
194 verbose stack at C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:990:31
194 verbose stack at Array.map (<anonymous>)
194 verbose stack at Arborist.[buildDepStep] (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:990:8)
194 verbose stack at async Arborist.buildIdealTree (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:218:7)
194 verbose stack at async Promise.all (index 1)
194 verbose stack at async Arborist.reify (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:154:5)
194 verbose stack at async Install.exec (C:\Users\stas\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:145:5)
195 verbose cwd D:\work\EDMS4.0
196 verbose Windows_NT 10.0.19044
197 verbose node v16.17.0
198 verbose npm v8.18.0
199 error code ERESOLVE
200 error ERESOLVE could not resolve
201 error
202 error While resolving: [1mng4-loading-spinner[22m@[1m1.2.3[22m
202 error Found: [1m@angular/core[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/core[22m
202 error [35mpeer[39m [1m@angular/core[22m@"[1m7.2.2[22m" from [1m@angular/animations[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/animations[22m
202 error [35mpeer[39m [1m@angular/animations[22m@"[1m^7.0.0[22m" from [1mangular2-notifications[22m@[1m2.0.0[22m[2m[22m
202 error [2mnode_modules/angular2-notifications[22m
202 error [1mangular2-notifications[22m@"[1m^2.0.0[22m" from the root project
202 error [1m@angular/animations[22m@"[1m~7.2.0[22m" from the root project
202 error [35mpeer[39m [1m@angular/core[22m@"[1m7.2.2[22m" from [1m@angular/common[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/common[22m
202 error [35mpeer[39m [1m@angular/common[22m@"[1m7.2.2[22m" from [1m@angular/forms[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/forms[22m
202 error [1m@angular/forms[22m@"[1m~7.2.0[22m" from the root project
202 error [35mpeer[39m [1m@angular/common[22m@"[1m7.2.2[22m" from [1m@angular/platform-browser[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/platform-browser[22m
202 error [35mpeer[39m [1m@angular/platform-browser[22m@"[1m7.2.2[22m" from [1m@angular/forms[22m@[1m7.2.2[22m[2m[22m
202 error [2mnode_modules/@angular/forms[22m
202 error [1m@angular/forms[22m@"[1m~7.2.0[22m" from the root project
202 error 4 more (@angular/platform-browser-dynamic, @angular/router, ...)
202 error 9 more (@angular/platform-browser-dynamic, @angular/router, ...)
202 error 12 more (@angular/forms, @angular/platform-browser, ...)
202 error
202 error Could not resolve dependency:
202 error [35mpeer[39m [1m@angular/core[22m@"[1m^6.0.0[22m" from [1mng4-loading-spinner[22m@[1m1.2.3[22m[2m[22m
202 error [2mnode_modules/ng4-loading-spinner[22m
202 error [1mng4-loading-spinner[22m@"[1m^1.2.3[22m" from the root project
202 error
202 error Conflicting peer dependency: [1m@angular/core[22m@[1m6.1.10[22m[2m[22m
202 error [2mnode_modules/@angular/core[22m
202 error [35mpeer[39m [1m@angular/core[22m@"[1m^6.0.0[22m" from [1mng4-loading-spinner[22m@[1m1.2.3[22m[2m[22m
202 error [2mnode_modules/ng4-loading-spinner[22m
202 error [1mng4-loading-spinner[22m@"[1m^1.2.3[22m" from the root project
202 error
202 error Fix the upstream dependency conflict, or retry
202 error this command with --force, or --legacy-peer-deps
202 error to accept an incorrect (and potentially broken) dependency resolution.
202 error
202 error See C:\Users\stas\AppData\Local\npm-cache\eresolve-report.txt for a full report.
203 verbose exit 1
204 timing npm Completed in 2527ms
此外,日志报告指出:
While resolving: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="751b124158191a14111c1b125806051c1b1b100735445b475b46" rel="noreferrer noopener nofollow">[email protected]</a>
Found: @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15767a677055223b273b27" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/core
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15747b7c7874617c7a7b6655223b273b27" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/animations
peer @angular/animations@"^7.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="71101f16041d1003435c1f1e05181718121005181e1f0231435f415f41" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/angular2-notifications
angular2-notifications@"^2.0.0" from the root project
@angular/animations@"~7.2.0" from the root project
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a7975777775745a2d34283428" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/common
peer @angular/common@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6e08011c031d2e59405c405c" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/forms
@angular/forms@"~7.2.0" from the root project
peer @angular/common@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="99e9f5f8edfff6ebf4b4fbebf6eeeafcebd9aeb7abb7ab" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d9bfb6abb4aa99eef7ebf7eb" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/forms
@angular/forms@"~7.2.0" from the root project
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f6869a97829099849bdb94849981859384db928f98979b9f95b6c1d8c4d8c4" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser-dynamic
peer @angular/platform-browser-dynamic@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1cfc6d98cc5c0d5c0d5c0c3cdc4e190958f918f91" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser-dynamic@"~7.2.0" from the root project
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1a3bea4a5b4a391e6ffe3ffe3" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/router
@angular/router@"~7.2.0" from the root project
peer @angular/platform-browser@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f59b928dd8919481948194979990b5c4c1dbc5dbc5" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser@"~7.2.0" from the root project
peer @angular/common@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e6e727f6a78716c73337c6c71696d7b6c337a67707f73777d5e29302c302c" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser-dynamic
peer @angular/platform-browser-dynamic@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7d131a0550191c091c091c1f11183d4c49534d534d" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser-dynamic@"~7.2.0" from the root project
peer @angular/common@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fb89948e8f9e89bbccd5c9d5c9" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/router
@angular/router@"~7.2.0" from the root project
peer @angular/common@">=7.0.0" from @ngx-translate/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f79f838387da9b9896939285b7c3d9c7d9c7" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@ngx-translate/http-loader
@ngx-translate/http-loader@"^4.0.0" from the root project
peer @angular/common@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d9b7bea1f4bdb8adb8adb8bbb5bc99e8edf7e9f7e9" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
peer @angular/common@"^7.0.0-rc.0 || ^7.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8eefe0e9fbe2effca3e6e7e9e6ede6effcfafdceb9a0bfa0be" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/angular-highcharts
angular-highcharts@"^7.1.0" from the root project
peer @angular/common@"^7.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c7d727b69707d6e2e31727368757a757f7d687573726f5c2e322c322c" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/angular2-notifications
angular2-notifications@"^2.0.0" from the root project
peer @angular/common@"^2.0.0-rc.0 || >=2.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cfa7a6a8a7aca7aebdbbbce2aea1a8baa3aebd8ffde1fbe1ff" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/highcharts-angular
highcharts-angular@"^2.4.0" from the root project
peer @angular/common@">=6.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b4dad3cc99d6dbdbc0c7c0c6d5c4f4879a869a84" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/ngx-bootstrap
ngx-bootstrap@"^3.2.0" from the root project
@angular/common@"~7.2.0" from the root project
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b5d544956487b0c15091509" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/forms
@angular/forms@"~7.2.0" from the root project
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="12627e7366747d607f3f70607d6561776052253c203c20" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31575e435c4271061f031f03" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/forms
@angular/forms@"~7.2.0" from the root project
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="691905081d0f061b04440b1b061e1a0c1b440d10070804000a295e475b475b" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser-dynamic
peer @angular/platform-browser-dynamic@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ed838a95c0898c998c998c8f8188addcd9c3ddc3dd" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser-dynamic@"~7.2.0" from the root project
peer @angular/platform-browser@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7b5a8b2b3a2b587f0e9f5e9f5" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/router
@angular/router@"~7.2.0" from the root project
peer @angular/platform-browser@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0cec7d88dc4c1d4c1d4c1c2ccc5e091948e908e90" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser@"~7.2.0" from the root project
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1d1cdc0d5c7ced3cc8cc3d3ced6d2c4d38cc5d8cfc0ccc8c2e1968f938f93" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/platform-browser-dynamic
peer @angular/platform-browser-dynamic@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="036d647b2e676277627762616f664332372d332d33" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
@angular/platform-browser-dynamic@"~7.2.0" from the root project
peer @angular/core@"7.2.2" from @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="46342933322334067168746874" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/router
@angular/router@"~7.2.0" from the root project
peer @angular/core@">=7.0.0" from @ngx-translate/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="482b273a2d08797966786679" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@ngx-translate/core
peer @ngx-translate/core@">=11.0.0" from @ngx-translate/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2baa6a6a2ffbebdb3b6b7a092e6fce2fce2" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@ngx-translate/http-loader
@ngx-translate/http-loader@"^4.0.0" from the root project
@ngx-translate/core@"^11.0.1" from the root project
peer @angular/core@"<8.0.0" from @swimlane/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9a7aeb1e4ada8bda8bda8aba5ac89f8fde7f9e7f9" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@swimlane/ngx-datatable
@swimlane/ngx-datatable@"^14.0.0" from the root project
peer @angular/core@"^7.0.0-rc.0 || ^7.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="62030c05170e03104f0a0b050a010a0310161122554c534c52" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/angular-highcharts
angular-highcharts@"^7.1.0" from the root project
peer @angular/core@"^7.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c6d626b79606d7e3e21626378656a656f6d786563627f4c3e223c223c" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/angular2-notifications
angular2-notifications@"^2.0.0" from the root project
peer @angular/core@">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7b18141f1e1702011e093b4f554e554b" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/codelyzer
dev codelyzer@"~4.5.0" from the root project
peer @angular/core@"^2.0.0-rc.0 || >=2.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4e262729262d262f3c3a3d632f20293b222f3c0e7c607a607e" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/highcharts-angular
highcharts-angular@"^2.4.0" from the root project
peer @angular/core@">=6.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="503e37287d323f3f24232422312010637e627e60" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/ngx-bootstrap
ngx-bootstrap@"^3.2.0" from the root project
@angular/core@"~7.2.0" from the root project
Could not resolve dependency:
peer @angular/core@"^6.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9bf5fcafb6f7f4fafff2f5fcb6e8ebf2f5f5fee9dbaab5a9b5a8" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/ng4-loading-spinner
ng4-loading-spinner@"^1.2.3" from the root project
Conflicting peer dependency: @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="21424e534461170f100f1011" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/@angular/core
peer @angular/core@"^6.0.0" from <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa949dced796959b9e93949dd7898a9394949f88bacbd4c8d4c9" rel="noreferrer noopener nofollow">[email protected]</a>
node_modules/ng4-loading-spinner
ng4-loading-spinner@"^1.2.3" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{
"code": "ERESOLVE",
"edge": {
"type": "peer",
"name": "@angular/core",
"spec": "^6.0.0",
"error": "INVALID",
"from": {
"name": "ng4-loading-spinner",
"version": "1.2.3",
"location": "node_modules/ng4-loading-spinner",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "ng4-loading-spinner",
"spec": "^1.2.3",
"from": {
"location": "D:\\work\\EDMS4.0"
}
}
]
}
},
"dep": {
"name": "@angular/core",
"version": "6.1.10",
"whileInstalling": {
"name": "ng4-loading-spinner",
"version": "1.2.3",
"path": "D:\\work\\EDMS4.0\\node_modules\\ng4-loading-spinner"
},
"location": "node_modules/@angular/core",
"isWorkspace": false,
"dependents": [
{
"type": "peer",
"name": "@angular/core",
"spec": "^6.0.0",
"error": "INVALID",
"from": {
"name": "ng4-loading-spinner",
"version": "1.2.3",
"location": "node_modules/ng4-loading-spinner",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "ng4-loading-spinner",
"spec": "^1.2.3",
"from": {
"location": "D:\\work\\EDMS4.0"
}
}
]
}
}
]
},
"current": {
"name": "@angular/core",
"version": "7.2.2",
"location": "node_modules/@angular/core",
"isWorkspace": false,
"dependents": [
{
"type": "peer",
"name": "@angular/core",
"spec": "7.2.2",
"from": {
"name": "@angular/animations",
"version": "7.2.2",
"location": "node_modules/@angular/animations",
"isWorkspace": false,
"dependents": [
{
"type": "peer",
"name": "@angular/animations",
"spec": "^7.0.0",
"from": {
"name": "angular2-notifications",
"version": "2.0.0",
"location": "node_modules/angular2-notifications",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "angular2-notifications",
"spec": "^2.0.0",
"from": {
"location": "D:\\work\\EDMS4.0"
}
}
]
}
},
{
"type": "prod",
"name": "@angular/animations",
"spec": "~7.2.0",
"from": {
"location": "D:\\work\\EDMS4.0"
}
}
]
}
},
最佳答案
由于您运行的是 npm 8+,您可以使用 overrides
package.json
的属性:
{
...
"overrides": {
// the troublesome package
"ng4-loading-spinner": {
// list the unmatched dependencies here
"@angular/core": "$@angular/core"
// this syntax means: if that package depends on @angular/core,
// use the version I have installed instead of the one it needs
}
}
}
关于angular - 与 ng4-loading-spinner 版本冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73588944/