shadcn安装问题

来源:3-2 Shadcn ui + radix primitives,如何打造超强用户体验的组件

慕UI5320325

2024-09-13

我在vscode命令行中使用: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: read ECONNRESET
我单独用浏览器打开https://ui.shadcn.com/r/styles/index.json这个页面是正常的;
请教老师,这个问题要怎么解决,谢谢

写回答

1回答

Jokcy

2024-09-20

你的nodejs什么版本?直接在命令行curl可以成功么?
0
0

前端全栈进阶 Nextjs打造跨框架SaaS应用

从构思到部署 ,助你完成从开发者到服务提供者的蜕变

304 学习 · 66 问题

查看课程