Could not resolve eslint dependency
See original GitHub issueIssue Description
Hi there,
Thank you very much for maintaining this repo. I tried to build it on my GNU/Linux Debian 10 system. I have node v10.23.0
and yard 1.22.10
version. I received the following error after running the Quick Start
instruction gatsby new my-map-app https://github.com/colbyfayock/gatsby-starter-leaflet
. Looks like an eslint dependency issue.
info Creating new site from git: https://github.com/colbyfayock/gatsby-starter-leaflet.git
Cloning into 'my-map-app'...
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 89 (delta 1), reused 52 (delta 1), pack-reused 0
success Created starter directory layout
info Installing packages...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gatsby-starter-leaflet@0.3.0
npm ERR! Found: eslint@7.20.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^7.20.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^6.5.1" from eslint-config-zurgbot@0.1.0
npm ERR! node_modules/eslint-config-zurgbot
npm ERR! dev eslint-config-zurgbot@"^0.1.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:
ERROR
Command failed with exit code 1: npm install
Error: Command failed with exit code 1: npm install
- error.js:56 makeError
[lib]/[gatsby-cli]/[execa]/lib/error.js:56:11
- index.js:114 handlePromise
[lib]/[gatsby-cli]/[execa]/index.js:114:26
- next_tick.js:68 process._tickCallback
internal/process/next_tick.js:68:7
Then, I headed for the Starting from Scratch
approach. I ran the instruction yarn global add gatsby-cli
. After that I also checked the Gatsby version: Gatsby CLI version: 2.19.1
. After running the instruction gatsby new my-map-app https://github.com/colbyfayock/gatsby-starter-leaflet
I ended up with the same error as in the Quick Start
approach. Sadly, I am not able to move forward to run yarn develop
.
Is anyone familiar with this issue and does not mind to point me in the right direction?
Cheers, Stefan
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Hi! I had the same issue as dancesWithCycles with npm, “yarn install” did the job
@dancesWithCycles inside of the project, try:
then open up the file
gatsby-config.js
and remove the item from the plugins array with the same name