V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
gongcheng121

UMI UI 添加 模板失败?

  •  
  •   gongcheng121 · Mar 31, 2020 · 3685 views
    This topic created in 2226 days ago, the information mentioned may be changed or developed.

    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 replies    2020-04-01 10:10:32 +08:00
    127000
        1
    127000  
       Mar 31, 2020
    可能是 react,antd,umi 依赖了什么包之前没有安装好
    gongcheng121
        2
    gongcheng121  
    OP
       Apr 1, 2020   ❤️ 1
    @127000 我打算换到 linux 上试试了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2815 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:53 · PVG 21:53 · LAX 06:53 · JFK 09:53
    ♥ Do have faith in what you're doing.