当在控制台使用语法:npx umi block add Exception403 --path=/exception/403
会出现如下报错:(本地已经初始化 git:git init)
√ 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
at E:\code\antd\node_modules\_umi-build-dev@1.9.6@umi-build-dev\lib\plugins\commands\block\util.js:101:13
at Generator.throw (<anonymous>)
at asyncGeneratorStep (E:\code\antd\node_modules\_umi-build-dev@1.9.6@umi-build-dev\lib\plugins\commands\block\util.js:30:103)
at _throw (E:\code\antd\node_modules\_umi-build-dev@1.9.6@umi-build-dev\lib\plugins\commands\block\util.js:32:291)
at process._tickCallback (internal/process/next_tick.js:68:7)
PS E:\code\antd>
这个我会放到另一套课程来讲的,专门讲区块的