UMI UI 添加 模板失败?

2020-03-31 18:26:11 +08:00
 gongcheng121

使用 umi ui 中添加模板的功能时候,会报错如下

Start generate files
Faild generate files: Trying to copy from a source that does not exist: C:/Users/user/.umi3/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components


[Asset Error] Error: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:/Users/user/.umi3/blocks/github.com/ant-design/pro-blocks/ListTableList/src/components

可以确定的是这个文件是存在的,另外我尝试了其他模板,不存在 components 的目录模板,就可以直接安装成功

去搜了一圈,没看到和我情况类似的。。

2812 次点击
所在节点    JavaScript
2 条回复
127000
2020-03-31 19:03:14 +08:00
可能是 react,antd,umi 依赖了什么包之前没有安装好
gongcheng121
2020-04-01 10:10:32 +08:00
@127000 我打算换到 linux 上试试了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/658044

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX