sofastack / sofa-dashboard

Dashboard of SOFAStack.
Apache License 2.0
91 stars 51 forks source link

npm install failed #67

Closed khotyn closed 2 years ago

khotyn commented 2 years ago

Run npm install in the frontend project, got the following error:

❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: sofa-dashboard@1.0.0
npm ERR! Found: antd@3.26.20
npm ERR! node_modules/antd
npm ERR!   antd@"^3.20.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer antd@"4.x" from @ant-design/pro-layout@4.11.4
npm ERR! node_modules/@ant-design/pro-layout
npm ERR!   @ant-design/pro-layout@"^4.5.10" 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/khotyn/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/khotyn/.npm/_logs/2022-02-09T06_48_58_451Z-debug-0.log

This is because the newest ant-design/pro-layout@4.11.4 depends on antd@4.x which is conflict with the project version antd@3.x