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

[bug]: unable to get local issuer certificate #4867

Open
2 tasks done
Anuradhaaa022 opened this issue Sep 16, 2024 · 2 comments
Open
2 tasks done

[bug]: unable to get local issuer certificate #4867

Anuradhaaa022 opened this issue Sep 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Anuradhaaa022
Copy link

Describe the bug

PS C:\Users\mr63\OneDrive my-app> npx shadcn@latest init
✔ Preflight checks.
✔ Verifying framework. Found Next.js.
✔ Validating Tailwind CSS.
✔ Validating import alias.

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

request to https://ui.shadcn.com/r/styles/index.json failed, reason: unable to get local issuer certificate

Affected component/components

all

How to reproduce

npx shadcn@latest init

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

windows

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@Anuradhaaa022 Anuradhaaa022 added the bug Something isn't working label Sep 16, 2024
@muhammad-anser
Copy link

I am also facing the same issue

@muhammad-anser
Copy link

After running below it started working

For CLI
set NODE_TLS_REJECT_UNAUTHORIZED=0

For PS
$env:NODE_TLS_REJECT_UNAUTHORIZED=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants