Blogger Information
Blog 21
fans 0
comment 0
visits 12418
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
umi 结合 dva 使用
中天行者
Original
1123 people have browsed it

创建项目文件夹 umi 并进入文件夹

网站 https://umijs.org/zh-CN/docs/getting-started

https://umijs.org/zh-CN/docs/use-umi-ui

  • 创建umi-app项目

yarn create @umijs/umi-app

报错Error: EPERM: operation not permitted, mkdir ‘C:***

解决办法:找到用户目录,我的用户目录为:C:\Users\jin【C:\Users{账户}\】,删除目录下的.npmrc文件。

  • 安装依赖

yarn install

  • 安装umi-ui

yarn add @umijs/preset-ui -D

  • 配置脚本使用命令启动 在根目录 package.json 中得 scripts 中添加
  1. "scripts": {
  2. "start:umi-ui": "set UMI_UI=1 && umi dev",
  3. },
  • 启动命令

yarn start:umi-ui

  1. DONE Compiled successfully in 9501ms
  2. App running at:
  3. - Local: http://localhost:8000 (copied to clipboard)
  4. - Network: http://172.20.10.10:8000

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post