Skip to content

Commit 386a71e

Browse files
ci: fix npm install peer dependency conflict
Updated .github/workflows/build.yml to use `npm install --legacy-peer-deps` in all installation steps. This resolves the `ERESOLVE` error caused by conflicting peer dependencies between `anchor-bankrun` and `@coral-xyz/anchor`. Co-authored-by: ethan-hurst <23321960+ethan-hurst@users.noreply.github.com>
1 parent 41a83f8 commit 386a71e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030

3131
- name: Install Dependencies
3232
run: |
33-
npm install
34-
cd programs/helix-staking && npm install
35-
cd ../../app/web && npm install
36-
cd ../../services/indexer && npm install
33+
npm install --legacy-peer-deps
34+
cd programs/helix-staking && npm install --legacy-peer-deps
35+
cd ../../app/web && npm install --legacy-peer-deps
36+
cd ../../services/indexer && npm install --legacy-peer-deps
3737
3838
- name: Run Bankrun Tests (Program)
3939
run: |

services/indexer/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)