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

chore: add .node-version & .nvmrc 16.15.0 #161

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

MikeMcC399
Copy link
Collaborator

Issue

It is not possible to install the dependencies of the source of this repo using npm ci (without the option --legacy-peer-deps) under currently supported Node.js versions 18.x and later.

Node.js v16.15.0 / npm 8.5.5 is the last version where npm ci still succeeded.
With Node.js v16.15.1 / npm 8.11.0, executing npm ci fails.

yarn install completes with warnings, however since the repo includes a package-lock.json (from npm) and circle.yml, as CI workflow, installs dependencies with npm, Yarn should not be a consideration at this point.

Change

Add the files

  • .node-version
  • .nvmrc

with contents 16.15.0 to clarify the current Node.js compatibility. This is consistent with the usage of this two files in other Cypress repos such as cypress-io/cypress-realworld-app.

You can find a list of tools on node-version-usage to switch the version of Node.js based on .node-version.

This should be a temporary measure until compatibility with a supported version of Node.js is achieved.

Verification

On Ubuntu 22.04.4 LTS with n installed:

Execute:

n auto

and confirm that Node.js 16.15.0 is installed.

Execute:

npm ci

and confirm that the installation of dependencies is successful (with warnings).

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 12, 2024 09:25
Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @MikeMcC399. This repo needs some renovations 😅

@AtofStryker AtofStryker merged commit 1e9520d into cypress-io:master Apr 12, 2024
9 checks passed
@MikeMcC399
Copy link
Collaborator Author

@AtofStryker

Thanks for doing this @MikeMcC399. This repo needs some renovations 😅

I didn't realize until I starting digging in to it, just how many different places need tweaking and they are generally all interrelated, so it's difficult to know what the best order is.

Thanks for merging this PR. There will be some more!

@MikeMcC399 MikeMcC399 deleted the node-version branch April 12, 2024 16:31
@cypress-app-bot
Copy link

🎉 This PR is included in version 2.15.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants