question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run npm install

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
winstoncookecommented, Sep 28, 2022

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.

0reactions
CodyJasonBennettcommented, Nov 2, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run npm install - node.js - Stack Overflow
sudo npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/mg/package.json' npm WARN mg No description npm WARN mg ...
Read more >
5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed · Way 2. Make Sure There Is a Package.json File · Way 3. Delete Lock File...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. · If you are having trouble with npm...
Read more >
Problem with npm install - M220JS - MongoDB
Remove the node_modules folder inside the project folder where the package. · Run npm update -g npm · Execute this command by running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found