pmndrs / react-three-next

React Three Fiber, Threejs, Nextjs starter
https://react-three-next.vercel.app/
MIT License
2.52k stars 342 forks source link

Unable to run npm install #89

Open winstonrc opened 2 years ago

winstonrc commented 2 years ago

After cloning the project, when running npm install, the following output occurs:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: react-three-next@2.0.0
npm ERR! Found: eslint@8.20.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^8.20.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from eslint-plugin-tailwind@0.2.1
npm ERR! node_modules/eslint-plugin-tailwind
npm ERR!   dev eslint-plugin-tailwind@"^0.2.1" from the root project
MinyoungRsup2 commented 2 years ago

Was this ever resolved? or it it our issue

Judert commented 2 years ago

I'm not so clued up on solving npm dependency issues but I'm guessing the problem is on your side (the creators) because I've never had this issue with other installers.

winstonrc commented 2 years ago

It had to do with the eslint-plugin-tailwind. I haven't checked to see if any package updates have resolved the problem.

Personally I think cutting out Tailwind and the related packages from the starter template is worthwhile. Not only does that resolve the issue, but I think a CSS framework is best left out of a starter template.

AkbarBakhshi commented 2 years ago

Hi all. I am getting this same error. Any updates?

Judert commented 2 years ago

Hi all. I am getting this same error. Any updates?

I would just switch to yarn

CodyJasonBennett commented 2 years ago

Related: https://github.com/Idered/eslint-plugin-tailwind/issues/21. It does not list ESLint 8.x in its peer deps range. eslint-plugin-tailwindcss might be worth switching to.

With NPM, you can use the --legacy-peer-deps to ignore it or use a package manager like Yarn.