mantinedev / next-pages-template

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

unable to resolve dependency tree #13

Closed 0x11c11e closed 8 months ago

0x11c11e commented 2 years ago

user@user:~/Code/main-website$ npm install 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.1.0 npm ERR! node_modules/react npm ERR! react@"18.1.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 /home/user/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2022-05-19T20_58_13_094Z-debug-0.log

os: debian ide: vscode

rtivital commented 2 years ago

Use yarn with this template and it will work fine

Maetes commented 2 years ago

If you want to use, you can also do a npm install --legacy-peer-deps