-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug]: Corepack eneable pnpm does not work in playwright image 1.43.X anymore #30400
Comments
I cannot reproduce it on a fresh 1.43.1 image:
From the error message it looks like the command cannot connect to https://registry.npmjs.org/pnpm, probably a transient network issue? |
Same error is now happening on my end after updating to the 1.43.1 docker image:
Version 1.42.0 also works fine with corepack, but my project's dependencies attempt to install Playwright 1.43.1, which then breaks when running tests:
My current workaround is to enforce the installed dependencies by using
But ideally that shouldn't stay there for too long 😅 |
Not sure how we can help here, I tried again on a fresh setup without creating npm package and works fine, it also works fine on our CI, so it does seem to be a problem with your machines access to https://registry.npmjs.org/pnpm. |
The Problem is the update of the corepack dependency to 0.25 or greater. If you would downgrade the corepack version when using the playwright image 1.43.x with Corepack changed the way its connect to a private Artifactory. There are some env variables to connect to your private Artifactory but I couldn't get it to work. I get a 401 for not Authorized even when I use the same credentials I use in other jobs:
or Another workaround which I use is to install pnpm with npm |
Closing per the description above. There is already a related issue in corepack: nodejs/corepack#458 |
Version
1.43.1-focal
Steps to reproduce
gitlab-ci.yml job:
Expected behavior
Output of the version of pnpm (and a working pnpm version)
Actual behavior
Gitlab console output:
Additional context
We installed pnpm with
corepack enable pnpm
how it is mentioned in the documentation of corepack and pnpm in the newest version:https://pnpm.io/installation
The same example will work, if the image
playwright:v1.42.1-focal
will be used.I used this 4 examples to verify, that it broke in the mentioned minor update. I do use a private Artifactory and some Proxys in my before script of the job. The error does exist since 1.43.0 and still in exist 1.43.1
Environment
The text was updated successfully, but these errors were encountered: