先找个地方建个空目录
mkdir myapp && cd myapp
通过官方工具创建项目
yarn create @umijs/umi-app # 或 npx @umijs/umi-app Copy: .editorconfig Write: .gitignore Copy: .prettierignore Copy: .prettierrc Write: .umirc.ts Copy: mock/.gitkeep Write: package.json Copy: README.md Copy: src/pages/index.less Copy: src/pages/index.tsx Copy: tsconfig.json Copy: typings.d.ts
安装依赖
$ yarn install yarn install v1.22.18 info No lockfile found. [1/4] Resolving packages...
运行项目
yarn start
标签:umijs,app,yarn,Write,UmiJs,myapp,上手,Copy,快速 From: https://www.cnblogs.com/chen-cheng/p/17377079.html