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

build fail due to https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz: Request failed \"403 Forbidden\"". #2160

Closed
PrincePranav235 opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@PrincePranav235
Copy link

During building the image,
while running RUN npm install -g yarn, getting below errors
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/yarn failed, reason: unable to verify the first certificate

and also,

$ scripts/use_node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "typescript@~4.5.2"
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz: Request failed "403 Forbidden"".

Can anyone tell, how to deal with this issue?

@PrincePranav235 PrincePranav235 added bug Something isn't working untriaged labels Dec 10, 2024
@cwperks
Copy link
Member

cwperks commented Dec 16, 2024

[Triage] @PrincePranav235 What version of npm are you using? Make sure to use the same node version as OSD Core: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/.node-version

I don't think this is an issue with this repository. Closing this issue, please re-open if you suspect there to be a bug.

@cwperks cwperks closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants