geojson.io
geojson.io copied to clipboard
Fix dependency error
Hi! Thank you for great application. When I run npm install, I got the error below. So, I solve the problem by update @mapbox/[email protected] to @5.0.2
Colud you review it When you have time?
$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @mapbox/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/mapbox-gl
npm ERR! mapbox-gl@"3.1.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer mapbox-gl@">= 0.47.0 < 3.0.0" from @mapbox/[email protected]
npm ERR! node_modules/@mapbox/mapbox-gl-geocoder
npm ERR! @mapbox/mapbox-gl-geocoder@"^5.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/mapbox-gl
npm ERR! peer mapbox-gl@">= 0.47.0 < 3.0.0" from @mapbox/[email protected]
npm ERR! node_modules/@mapbox/mapbox-gl-geocoder
npm ERR! @mapbox/mapbox-gl-geocoder@"^5.0.1" 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!
npm ERR! For a full report see:
npm ERR! /Users/naoppy/.npm/_logs/2024-02-28T19_17_55_411Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /Users/naoppy/.npm/_logs/2024-02-28T19_17_55_411Z-debug-0.log
But I fond the sentence below from README. If you think it's not necessary, please close this PR.
If you get an error resolving dependencies related to rollup on newer versions of node, then try npm install --force and be sure to not commit changes to package-lock.json.
Hello, @naogify! Thank you for your contribution!