keplergl/kepler.gl

[Bug] npm install fails due to dependency conflict

Pinstack opened this issue · 0 comments

I was trying to set up Kepler.gl locally by running npm install.

I expected the dependencies to install without issues.

I encountered an npm ERR! code ERESOLVE error related to @hubble.gl/core and @hubble.gl/react.

Steps to Reproduce:
Clone the Kepler.gl repository.
Run npm install.

Log 1:
'Log files:
/2023-10-20T21_43_45_251Z-debug-0.log

npm resolution error report

While resolving: kepler.gl@3.0.0-alpha.1
Found: @hubble.gl/core@1.2.0-alpha.6
node_modules/@hubble.gl/core
@hubble.gl/core@"1.2.0-alpha.6" from the root project

Could not resolve dependency:
peer @hubble.gl/core@"^1.1.0" from @hubble.gl/react@1.2.0-alpha.6
node_modules/@hubble.gl/react
@hubble.gl/react@"1.2.0-alpha.6" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Log 2
'Log files:
/2023-10-20T21_58_09_895Z-debug-0.log

npm resolution error report

While resolving: kepler.gl@3.0.0-alpha.1
Found: eslint@5.16.0
node_modules/eslint
dev eslint@"^5.16.0" from the root project

Could not resolve dependency:
peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0" from @typescript-eslint/parser@5.27.0
node_modules/@typescript-eslint/parser
@typescript-eslint/parser@"^5.27.0" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Laptop (please complete the following information):

  • OS: [Mac OS- monterey 12.7]