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

unable to verify the first certificate #2986

Open
CedricChing opened this issue Mar 2, 2024 · 3 comments
Open

unable to verify the first certificate #2986

CedricChing opened this issue Mar 2, 2024 · 3 comments

Comments

@CedricChing
Copy link

When I tried to execute ’npm install‘ command to download the dependencies, the error from node-gyp occurred.
'gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz failed, reason: unable to verify the first certificate'

Here's the version
node v20.11.1
npm v10.2.4
node-gyp v10.0.1
image

it's an urgent issue for me, looking forward to your reply. : )

@PaulWeb30
Copy link

Hello! For me, it helped to disable and re-enable this property - npm config set strict-ssl false => npm config set strict-ssl true

@CedricChing
Copy link
Author

CedricChing commented Apr 18, 2024 via email

@michael-zerna
Copy link

The solution from @PaulWeb30 as strange it seems works for me as well.

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

3 participants