thedevs-network / kutt

Free Modern URL Shortener.
https://kutt.it
MIT License
8.45k stars 1.1k forks source link

wrong dependencies #660

Open waclaw66 opened 1 year ago

waclaw66 commented 1 year ago
# npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-use-form-state@0.13.2
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!   peer react@">=16.3.0" from @emotion/core@10.3.1
npm ERR!   node_modules/@emotion/core
npm ERR!     peer @emotion/core@"^10.0.27" from @emotion/styled@10.3.0
npm ERR!     node_modules/@emotion/styled
npm ERR!       @emotion/styled@"^10.0.0" from reflexbox@4.0.6
npm ERR!       node_modules/rebass/node_modules/reflexbox
npm ERR!         reflexbox@"^4.0.6" from rebass@4.0.7
npm ERR!         node_modules/rebass
npm ERR!     peer @emotion/core@"^10.0.28" from @emotion/styled-base@10.3.0
npm ERR!     node_modules/@emotion/styled-base
npm ERR!       @emotion/styled-base@"^10.3.0" from @emotion/styled@10.3.0
npm ERR!       node_modules/@emotion/styled
npm ERR!         @emotion/styled@"^10.0.0" from reflexbox@4.0.6
npm ERR!         node_modules/rebass/node_modules/reflexbox
npm ERR!     1 more (reflexbox)
npm ERR!   21 more (@emotion/styled, @emotion/styled-base, easy-peasy, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from react-use-form-state@0.13.2
npm ERR! node_modules/react-use-form-state
npm ERR!   react-use-form-state@"^0.13.2" 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.0" from react-use-form-state@0.13.2
npm ERR!   node_modules/react-use-form-state
npm ERR!     react-use-form-state@"^0.13.2" 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.
poeti8 commented 1 year ago

What's your npm version? You can use --force for now to bypass this error.

waclaw66 commented 1 year ago

Node.js v18.12.1 Seems --force helped. Thanks.

dkyeremeh commented 1 year ago

@poeti8 @waclaw66 since it's fixed, why don't you close it?

waclaw66 commented 1 year ago

@dkyeremeh Because the dependencies are forced and npm install does not work without it.