yarn create umi安装Ant Design Pro的时候报错Error: Command failed: git clone

yarn create umi安装Ant Design Pro的时候报错Error: Command failed: git clone

错误:

D:\workspace\ManagerUI\antDesign>yarn create umi
yarn create v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "win32" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-umi@0.15.0" with binaries:
      - create-umi
? Select the boilerplate type ant-design-pro
? Which language do you want to use? JavaScript
> git clone https://github.com/ant-design/ant-design-pro --depth=1 D:\workspace\ManagerUI\antDesign
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: Command failed: git clone https://github.com/ant-design/ant-design-pro --depth=1 D:\workspace\ManagerUI\antDesign
Cloning into 'D:\workspace\ManagerUI\antDesign'...
fatal: unable to access 'https://github.com/ant-design/ant-design-pro/': Failed to connect to github.com port 443: Timed out


    at makeError (C:\Users\YBJB\AppData\Local\Yarn\Data\global\node_modules\execa\index.js:174:9)
    at Promise.all.then.arr (C:\Users\YBJB\AppData\Local\Yarn\Data\global\node_modules\execa\index.js:278:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Emitted 'error' event at:
    at Immediate.setImmediate (C:\Users\YBJB\AppData\Local\Yarn\Data\global\node_modules\yeoman-generator\lib\index.js:436:22)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
error Command failed.
Exit code: 1
Command: C:\Users\YBJB\AppData\Local\Yarn\bin\create-umi
Arguments:
Directory: D:\workspace\ManagerUI\antDesign
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

国内环境问题,有网友说切换成cyarn可解决

我是直接挂了个vpn解决

或者切换使用国内加速,npm命令使用国内加速也可以

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

椰子奶糖

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值