projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.58k stars 1.17k forks source link

npm package cannot be installed #804

Open mulkrajsingh opened 3 years ago

mulkrajsingh commented 3 years ago

Could not resolve dependency: npm WARN peer react@"16.*" from @projectstorm/react-diagrams-defaults@6.3.0 npm WARN node_modules/@projectstorm/react-diagrams-defaults npm WARN @projectstorm/react-diagrams-defaults@"^6.0.1-beta.7" from @projectstorm/react-diagrams@6.0.1-beta.7 npm WARN node_modules/@projectstorm/react-diagrams npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

Andrej-jigx commented 3 years ago

Try to delete node-module and install them again.

vadimshvetsov commented 3 years ago

Looks like you have npm v7 and it can block installation when peer dependencies are not resolved properly. Maybe you have react 17 in project but here we have 16.* in react-diagrams and that's the cause. Until library doesn't support react v17 (PR is up #755) in peers you can use npm i --legacy-peer-deps.

vadimshvetsov commented 3 years ago

It should be closed, because React 17 support in master