FetchError:请求https://ui.shadcn.com/registry/styles/index.json失败,原因:在ClientRequest连接ETIMEDOUT 76.76.21.9:443。(file:/D:/Projects/WebProjects/Eccupce/my-app/node_modules/node-fetch/src/index. js:108:11)at ClientRequest.emit(node:events:513:28)at TLSSocket. socketErrorNT(node:_http_client:502:9)at TLSSocket.emit(node:events:513:28)at emitErrorNT(node:internal/streams/destroy:151:8)
at emitErrorCloseNT(node:internal/streams/destroy:116:3)at process.processTicksAndRejections(node:internal/process/task_queues:82:21){ type:'system',错误号:“ETIMEDOUT”,代码:“ETIMEDOUT”,错误SysCall:'connect' }无法从注册表中提取样式。
我试过npm配置删除代理npm配置删除http-proxy npm配置删除https-proxy
但没有成功
1条答案
按热度按时间nbewdwxp1#
你需要先运行“npm run dev”来加载下一个文件夹。然后安装shadcn组件。应该可以的