nemanjam / nemanjam.github.io

Developer blog website built with Astro and Tailwind.
https://nemanjamitic.com
MIT License
21 stars 4 forks source link

# install packages:npm install error: #10

Open YangTao848 opened 4 weeks ago

YangTao848 commented 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.

nemanjam commented 4 weeks ago

I don't know, I use yarn. Use this flag --legacy-peer-deps it will probably work.