umijs / umi-blocks

Official collection of some high quality blocks.
https://blocks.umijs.org
MIT License
228 stars 50 forks source link

添加官方block报错, not a git repository #30

Closed saltdg closed 5 years ago

saltdg commented 5 years ago

umi block list 能看到列表

Blocks: ant-design-pro\AccountCenter ...

直接执行 umi block add ant-design-pro/AccountCenter 报错:

√ Parse url and args × Git fetch × error Error: Error: Command failed: git fetch fatal: not a git repository (or any of the parent directories): .git

mrzhangboss commented 5 years ago

似乎添加全部路径有效 例如 umi block add https://github.com/umijs/umi-blocks/tree/master/ant-design-pro/AccountCenter

MI-Class commented 5 years ago

直接使用“umi block add AccountCenter”

sohui commented 5 years ago

直接使用“umi block add AccountCenter” 这个命令也不能正常工作。

chenshuai2144 commented 5 years ago

尝试使用 umi block clear