react-three-next icon indicating copy to clipboard operation
react-three-next copied to clipboard

Unable to run npm install

Open winstonrc opened this issue 2 years ago • 6 comments

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: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
npm ERR! node_modules/eslint-plugin-tailwind
npm ERR!   dev eslint-plugin-tailwind@"^0.2.1" from the root project

winstonrc avatar Aug 07 '22 20:08 winstonrc

Was this ever resolved? or it it our issue

MinyoungRsup2 avatar Sep 27 '22 23:09 MinyoungRsup2

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.

Judert avatar Sep 28 '22 09:09 Judert

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.

winstonrc avatar Sep 28 '22 14:09 winstonrc

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

AkbarBakhshi avatar Oct 29 '22 23:10 AkbarBakhshi

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

I would just switch to yarn

Judert avatar Oct 30 '22 18:10 Judert

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.

CodyJasonBennett avatar Nov 02 '22 22:11 CodyJasonBennett