Skip to content

Fix build: add --legacy-peer-deps to npm install#83

Merged
HolimaX merged 2 commits into
feature/Add-Android14-HSGalaxyRing-NFTMintfrom
chunk/fix-npm-legacy-peer-deps
Jun 3, 2026
Merged

Fix build: add --legacy-peer-deps to npm install#83
HolimaX merged 2 commits into
feature/Add-Android14-HSGalaxyRing-NFTMintfrom
chunk/fix-npm-legacy-peer-deps

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Jun 3, 2026

Copy link
Copy Markdown

Problem

Job #400 (npm i --save) failed with ERESOLVE unable to resolve dependency tree:

  • Project uses react@16.14.0
  • react-router@7.15.0 (pulled in transitively via @okta/okta-react) requires react>=18
  • npm's strict peer resolution rejects this conflict and exits with code 1

Fix

Add --legacy-peer-deps to the npm i --save command in .circleci/config.yml. This flag was already referenced in the commented-out line above the failing step, so this is the intended approach for this project.

Before:

- run: npm i --save

After:

- run: npm i --save --legacy-peer-deps

https://app.circleci.com/agents/gh/HolimaX/chat/8864371e-0ced-4d8b-a655-72a4e08e90ce

circleci-app Bot and others added 2 commits June 3, 2026 08:15
react-router@7.15.0 requires react>=18 but project uses react@16.14.0.
Add --legacy-peer-deps to npm i --save to bypass strict peer resolution.
Signed-off-by: Linards <33150232+HolimaX@users.noreply.github.com>
@HolimaX HolimaX merged commit 37c004d into feature/Add-Android14-HSGalaxyRing-NFTMint Jun 3, 2026
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant