Open dxf-keniula opened 3 months ago
本地npm install安装依赖报错,好像是依赖冲突,请问应该怎么解决呢
While resolving: undefined@undefined npm ERR! Found: react@18.3.1 npm ERR! node_modules/react npm ERR! peer react@">=16.0.0" from @ant-design/icons@4.8.3 npm ERR! node_modules/@ant-design/icons npm ERR! dev @ant-design/icons@"^4.1.0" from the root project npm ERR! peer react@"^18.3.1" from react-dom@18.3.1 npm ERR! node_modules/react-dom npm ERR! peer react-dom@">=16.0.0" from @ant-design/icons@4.8.3 npm ERR! node_modules/@ant-design/icons npm ERR! dev @ant-design/icons@"^4.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev @sula/charts@"^1.0.0-alpha.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@16.14.0 npm ERR! node_modules/react npm ERR! peer react@"^16.8.6" from @sula/charts@1.0.0-alpha.6 npm ERR! node_modules/@sula/charts npm ERR! dev @sula/charts@"^1.0.0-alpha.0" from the root project
你react版本太高了,sula支持16,目前还不支持react18
Question
本地npm install安装依赖报错,好像是依赖冲突,请问应该怎么解决呢
Description
While resolving: undefined@undefined npm ERR! Found: react@18.3.1 npm ERR! node_modules/react npm ERR! peer react@">=16.0.0" from @ant-design/icons@4.8.3 npm ERR! node_modules/@ant-design/icons npm ERR! dev @ant-design/icons@"^4.1.0" from the root project npm ERR! peer react@"^18.3.1" from react-dom@18.3.1 npm ERR! node_modules/react-dom npm ERR! peer react-dom@">=16.0.0" from @ant-design/icons@4.8.3 npm ERR! node_modules/@ant-design/icons npm ERR! dev @ant-design/icons@"^4.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev @sula/charts@"^1.0.0-alpha.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@16.14.0 npm ERR! node_modules/react npm ERR! peer react@"^16.8.6" from @sula/charts@1.0.0-alpha.6 npm ERR! node_modules/@sula/charts npm ERR! dev @sula/charts@"^1.0.0-alpha.0" from the root project