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

fix: CI Pnpm example lockfile incompatibility #494

Merged

Conversation

MikeMcC399
Copy link
Collaborator

Issue

The test-deploy workflow in .circleci/test-deploy.yml fails running the job name: Pnpm Example, in the step "Installing PNPM packages", when triggered by tag creation, with the error message:

 WARN  Ignoring not compatible lockfile at /home/circleci/project/examples/pnpm-install/pnpm-lock.yaml
node_modules/.pnpm                       |  WARN  Ignoring not compatible lockfile at /home/circleci/project/examples/pnpm-install/node_modules/.pnpm/lock.yaml
 ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is present

Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"

Exited with code exit status 1

The job is running in the CircleCI Docker image cimg/node:18.16.1-browsers which has [email protected] pre-installed.

examples/pnpm-install/pnpm-lock.yaml uses lockfileVersion: '9.0'. This requires pnpm@9 and is incompatible with pnpm@8. The command pnpm install --frozen-lockfile, from the circleci/node Orb, fails due to lockfile incompatibility.

Change

As a workaround, add node-version: '22.11.0' to the job name: Pnpm Example. The CircleCI Docker image cimg/node:22.11.0-browsers has [email protected] installed, which is compatible with examples/pnpm-install/pnpm-lock.yaml.

Note

@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane jennifer-shehane merged commit b9527cf into cypress-io:master Nov 12, 2024
9 of 10 checks passed
@MikeMcC399 MikeMcC399 deleted the fix/pnpm-ci-node-version branch November 12, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants