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]: init and install component failed #5565

Closed
2 tasks done
gongsungg opened this issue Oct 25, 2024 · 13 comments
Closed
2 tasks done

[bug]: init and install component failed #5565

gongsungg opened this issue Oct 25, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@gongsungg
Copy link

Describe the bug

$ 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: connect ETIMEDOUT 76.76.21.98:443

Affected component/components

install

How to reproduce

My address is not in the United States and I downloaded it through a VPN, but it still doesn’t work.

Codesandbox/StackBlitz link

1

Logs

No response

System Info

Windows11 edge

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@gongsungg gongsungg added the bug Something isn't working label Oct 25, 2024
@imyuanli
Copy link

I also have this problem and am looking forward to a solution. The new cli cannot be downloaded.

@melikdev
Copy link

melikdev commented Oct 25, 2024

Same problem on create-next-app@latest. Tried deleting node_modules and shadcn dependencies from package.json still having errors while initializing shadcn.

edit: adding npm install --legacy-peer-deps solved it for me.

@sofisalmanarif
Copy link

i am also facing this issue i am using linux ubuntu

@Bhaskarsahu23
Copy link

Bhaskarsahu23 commented Oct 25, 2024

I am also facing similar problem when trying to add component getting this error.

Screenshot (555)

@unknowncoder-gamer
Copy link

ya me to having this error in next15 we can hope shadcn team fix it really soon

@Codenuclei
Copy link

Prefer manual install wait for devs to upgrade to react 19

@arhamkhnz
Copy link

I'm encountering the same problem with Next 14, receiving the message:

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/new-york/avatar.json failed, reason: read ECONNRESET

Is there any fix or workaround available?

@GiancarlosIO
Copy link

same problem here 😢

@imyuanli
Copy link

ya me to having this error in next15 we can hope shadcn team fix it really soon

No, I haven't upgraded my NextJS to 15 and still have this issue.

@imyuanli
Copy link

Same problem on create-next-app@latest. Tried deleting node_modules and shadcn dependencies from package.json still having errors while initializing shadcn.

edit: adding npm install --legacy-peer-deps solved it for me.

I haven't upgraded my NextJS to 15 and still have this issue

@shadcn
Copy link
Collaborator

shadcn commented Oct 28, 2024

I'm working on a fix. Let's use #5557 to track since they are related.

@shadcn shadcn closed this as completed Oct 28, 2024
@gongsungg
Copy link
Author

gongsungg commented Oct 29, 2024

I'm working on a fix. Let's use #5557 to track since they are related.

But I am not using nextjs15, I am still using next 14, Since I am in China, I use the domestic npm mirror source. Is it because of this reason?
b86aae07aedec3514386a02b748ad525

@gongsungg
Copy link
Author

I switched the mirror source back to the official one and still got this error.This has been bothering me for many days, and I don't know how to solve it. Manually installing the style will cause problems.
image
image

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

10 participants