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

Error: certificate has expired #9032

Open
bmacher opened this issue Feb 5, 2024 · 8 comments
Open

Error: certificate has expired #9032

bmacher opened this issue Feb 5, 2024 · 8 comments

Comments

@bmacher
Copy link

bmacher commented Feb 5, 2024

Hi, yarn fails in my GitHub actions and I don't find any information how to fix it. This is what I get:

Run yarn install --frozen-lockfile
yarn install v1.22.21
[1/4](https://github.com/bmacher/macher.dev/actions/runs/7752883488/job/21214882066#step:6:5)] Resolving packages...
[2/4] Fetching packages...
error Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1[5](https://github.com/bmacher/macher.dev/actions/runs/7752883488/job/21214882066#step:6:6)39:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket._finishInit (node:_tls_wrap:953:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:[7](https://github.com/bmacher/macher.dev/actions/runs/7752883488/job/21214882066#step:6:8)34:[12](https://github.com/bmacher/macher.dev/actions/runs/7752883488/job/21214882066#step:6:13))
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.

Please can anyone help? :-)

@panjf2000
Copy link

I ran into this issue today, and it seems to be recent and there is still no answer to it.

While waiting for the official team to fix this, there is a temporary solution: yarn config set strict-ssl false

@CrawfordAndWood
Copy link

CrawfordAndWood commented Feb 27, 2024

I've just run into this:
Running command yarn install
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
error Error: certificate has expired

Thanks to panjf2000 for the suggestion, I'll see about trying that if it doesn't magically resolve soon.

@MythicManiac
Copy link

Also running into this

@MythicManiac
Copy link

In our case the problem was a npm registry proxy that was pinned in yarn.lock was no longer available, and the fix was to change the registry that's pinned. You can regenerate the resolved registry by deleting the resolved lines from yarn.lock and running yarn install again.

@undermoodzyx
Copy link

Same for me. The node version I'm using is v20.11.0.
However, after switching node to v16.xx, yarn works normally.

@RiverCui
Copy link

I ran into this issue today, and it seems to be recent and there is still no answer to it.

While waiting for the official team to fix this, there is a temporary solution: yarn config set strict-ssl false

It works, thank u!

@hzz780
Copy link

hzz780 commented Apr 2, 2024

rm yarn.lock
yarn

this one is ok for me

@Et7f3
Copy link

Et7f3 commented Apr 4, 2024

rm yarn.lock
yarn

Based on @MythicManiac you can do sed -i /resolved/d yarn.lock instead (it worked for me).

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

No branches or pull requests

8 participants