mantinedev / next-pages-template

Mantine + Next.js pages router template
https://mantine.dev/guides/next/
MIT License
485 stars 131 forks source link

Issue while installing dependencies #5

Closed gerardmarquina closed 2 years ago

gerardmarquina commented 2 years ago

Cloning this repo and doing npm i gives me the following:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mantine-next-template@1.0.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.x || ^17.x" from @modulz/radix-icons@4.0.0
npm ERR! node_modules/@modulz/radix-icons
npm ERR!   @modulz/radix-icons@"^4.0.0" 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.
npm ERR!
npm ERR! See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2022-04-05T14_05_12_750Z-debug-0.log
npm ERR! node_modules/@modulz/radix-icons
npm ERR!   @modulz/radix-icons@"^4.0.0" 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.
a-smiggle commented 2 years ago

yarn and pnpm are still working. Issue is only when using npm

rtivital commented 2 years ago

This template uses yarn, you can find solution for npm here – https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

gerardmarquina commented 2 years ago

Sorry, I'm not familiar with yarn. I see a package.json and automatically asume its an npm package. I think its a great idea to add information on how to install the dependencies with yarn on the README or give some kind of notice.