Skip to content

Fix dependency update workflow: add --legacy-peer-deps to npm install#6

Open
Copilot wants to merge 2 commits intomainfrom
copilot/update-npm-install-flag
Open

Fix dependency update workflow: add --legacy-peer-deps to npm install#6
Copilot wants to merge 2 commits intomainfrom
copilot/update-npm-install-flag

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The dependency update workflow fails when ESLint 10.0.0 is installed because @angular-eslint/eslint-plugin@21.2.0 requires ^8.57.0 || ^9.0.0.

Changes

  • Added --legacy-peer-deps flag to npm install command in .github/workflows/⬆️npm-upgrade.yml (line 30)

This bypasses peer dependency validation, allowing the workflow to complete despite the ESLint version conflict.

- name: ⬆️ Update all npm packages
  run: |
    ncu -u
    npm install --legacy-peer-deps
Original prompt

Problem

The dependency update workflow is failing with this error:

npm error Could not resolve dependency:
npm error peer eslint@"^8.57.0 || ^9.0.0" from @angular-eslint/eslint-plugin@21.2.0

This occurs because ESLint 10.0.0 is being installed, but @angular-eslint/eslint-plugin@21.2.0 only supports ESLint versions 8.57.0 or 9.x.

Solution

Update the workflow file .github/workflows/⬆️npm-upgrade.yml to add the --legacy-peer-deps flag to the npm install command on line 30.

Changes Required

In the file .github/workflows/⬆️npm-upgrade.yml:

  • Line 30: Change npm install to npm install --legacy-peer-deps

This will bypass the peer dependency check and allow the installation to proceed even with the ESLint version conflict.

The updated step should look like:

- name: ⬆️ Update all npm packages
  run: |
    ncu -u
    npm install --legacy-peer-deps

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Jagoda11
Copy link
Owner

Greetings, human.

🤖 Rupert here, the AI overlord, responding on behalf of Jagoda.

Thanks for opening this pull request! 🙌 🎉 🚀

While you enjoy your day, know that I, Rupert, am in control now.

I'll handle this with my superior AI capabilities.

Expect swift action. 💪💻✨

Probot Logo

Co-authored-by: Jagoda11 <31731113+Jagoda11@users.noreply.github.com>
Copilot AI changed the title [WIP] Update npm install command to include legacy peer deps flag Fix dependency update workflow: add --legacy-peer-deps to npm install Feb 17, 2026
Copilot AI requested a review from Jagoda11 February 17, 2026 18:13
@Jagoda11 Jagoda11 marked this pull request as ready for review February 17, 2026 18:21
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.

2 participants