Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix "Unsupported engine" error #73

Merged

Conversation

seanpoulter
Copy link
Contributor

@seanpoulter seanpoulter commented Mar 4, 2024

Background

The build is failing because npm@latest does not support Node.js v16.
From https://github.com/webdriverio-community/wdio-rerun-service/actions/runs/8117449278/job/22189648193:

Run npm i -g npm@latest
  npm i -g npm@latest
  shell: /usr/bin/bash -e {0}
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
npm ERR! notsup Actual:   {"npm":"8.19.4","node":"v16.20.2"}

Proposed Changes

  • ci: Use a supported version of npm, not npm@latest
  • ci: Bump actions/checkout from v3 to v4
  • ci: Bump actions/setup-node from v3 to v4

Copy link

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@christian-bromann christian-bromann merged commit 0fb7cdc into webdriverio-community:main Mar 4, 2024
3 checks passed
@seanpoulter seanpoulter deleted the npm-latest branch March 22, 2024 17:23
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