Open YangTao848 opened 4 weeks ago
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: nemanjam.github.io@0.0.1 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"^18.3.1" from the root project npm error npm error Could not resolve dependency: npm error peer react@"16.x || 17.x" from react-image-lightbox@5.1.4 npm error node_modules/react-image-lightbox npm error react-image-lightbox@"^5.1.4" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.
I don't know, I use yarn. Use this flag --legacy-peer-deps it will probably work.
--legacy-peer-deps
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: nemanjam.github.io@0.0.1 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"^18.3.1" from the root project npm error npm error Could not resolve dependency: npm error peer react@"16.x || 17.x" from react-image-lightbox@5.1.4 npm error node_modules/react-image-lightbox npm error react-image-lightbox@"^5.1.4" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.