V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
gongcheng121
V2EX  ›  JavaScript

UMI UI 添加 模板失败?

  •  
  •   gongcheng121 · 2020-03-31 18:26:11 +08:00 · 2799 次点击
    这是一个创建于 1484 天前的主题,其中的信息可能已经有所发展或是发生改变。

    GQ8kZV.png

    使用 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 的目录模板,就可以直接安装成功

    GQ3I8H.png

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

    2 条回复    2020-04-01 10:10:32 +08:00
    127000
        1
    127000  
       2020-03-31 19:03:14 +08:00
    可能是 react,antd,umi 依赖了什么包之前没有安装好
    gongcheng121
        2
    gongcheng121  
    OP
       2020-04-01 10:10:32 +08:00   ❤️ 1
    @127000 我打算换到 linux 上试试了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3056 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:02 · PVG 23:02 · LAX 08:02 · JFK 11:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.