umi 项目启动

本机环境

mac
npm -v 6.14.12
node -v v14.16.1

安装yarn

参考:https://blog.csdn.net/lhmood/article/details/107175250
最佳实践:使用curl -o- -L https://yarnpkg.com/install.sh | bash安装

Last login: Fri Mar 11 15:51:21 on ttys000
miyufeng@MacBook-Pro ~ % curl -o- -L https://yarnpkg.com/install.sh | bash

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    53  100    53    0     0     36      0  0:00:01  0:00:01 --:--:--    36
100  7152  100  7152    0     0   3078      0  0:00:02  0:00:02 --:--:--  3078
Installing Yarn!
> Downloading tarball...

[1/2]: https://yarnpkg.com/latest.tar.gz --> /var/folders/cb/44s6900s5wj1jmr5wnvxdjt00000gn/T/yarn.tar.gz.XXXXXXXXXX.0kMJjFTL
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    56  100    56    0     0     47      0  0:00:01  0:00:01 --:--:--    47
100    95  100    95    0     0     61      0  0:00:01  0:00:01 --:--:--    61
100   657  100   657    0     0    334      0  0:00:01  0:00:01 --:--:--   334
100 1216k  100 1216k    0     0   310k      0  0:00:03  0:00:03 --:--:--  659k

[2/2]: https://yarnpkg.com/latest.tar.gz.asc --> /var/folders/cb/44s6900s5wj1jmr5wnvxdjt00000gn/T/yarn.tar.gz.XXXXXXXXXX.0kMJjFTL.asc
100    60  100    60    0     0     85      0 --:--:-- --:--:-- --:--:--     0
100    99  100    99    0     0    118      0 --:--:-- --:--:-- --:--:--   118
100   661  100   661    0     0    528      0  0:00:01  0:00:01 --:--:--  645k
100  1028  100  1028    0     0    595      0  0:00:01  0:00:01 --:--:--   595
> WARNING: GPG is not installed, integrity can not be verified!
> Extracting to ~/.yarn...
> Adding to $PATH...
> We've added the following to your /Users/miyufeng/.zshrc
> If this isn't the profile of your current shell then please add the following to your correct profile:
   
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

> Successfully installed Yarn 1.22.17! Please open another terminal where the `yarn` command will now be available.
miyufeng@MacBook-Pro ~ % 

使用brew安装报错

miyufeng@MacBook-Pro demo % brew install yarn
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/c-ares-1.18
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.18.1
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/4f6b317a7f5bfbda604a7c7d02a110dfcf3e2d2dbbe1a339685bf56e4d313ff2--c-ares-1.18.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/blobs/sha256:d3dd43338a6
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/e288bc17cf07a960f24550df78106a7558497e1bd08468327e2f9fd15cea3a25--c-ares--1.18.1.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/icu4c-69.1.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/69.1
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/319330d53dab436f7e6bbe478539f29d41abb6be79788b06615f28006a82b30c--icu4c-69.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/blobs/sha256:d46b8ec5c3db
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/97d30dd52cbc3b71ade0f77163899dd14a8a9dd31a5ac7a211c909ff6c4a5f4e--icu4c--69.1.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libnghttp2-
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/manifests/1.46.0
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/d55a2f1fb62a2e27c224645798155f3226ca864134acd4e39dd7ddf4b8f79c50--libnghttp2-1.46.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/blobs/sha256:14061ff
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/74e65b2e970a5ef2371fad0444a6a702bbf020d824f95196c2a07d5372998523--libnghttp2--1.46.0.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libuv-1.42.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/libuv/manifests/1.42.0
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/4ce1023eed1fe46fcf9d27bb80ca32edb847285d1976eb5663e78eebf13c5982--libuv-1.42.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libuv/blobs/sha256:b11e3f74f2ca
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/ca0b6de87b9ae9718857239be9cad93ad7593988e6fcdbe96cd648239ba17ef7--libuv--1.42.0.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gdbm-1.22.b
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.22
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/e8b58066428135b278689a186abeaae951e5816cd8204e57b85c80b41adb13cc--gdbm-1.22.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:7e9737ec99942
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/e3c042bdb217f41db18b1587de87e4e61e0b16c4bd45aea0b5f06d4943a988cd--gdbm--1.22.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/mpdecimal-2
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/3ecc877f9209acc7f309602a4b20e304c3f4d4f7a1a6a5b626bafdd4e4f2a9db--mpdecimal-2.5.1.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/readline-8.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.1.1
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/11817fbc41986210e339d9491c3e8026783c4b58c01d37c8f297bb06898f0ecf--readline-8.1.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:c596199dc
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/90416c7cdeab89eed69c5d427cd8c34a22976df2cf23530145757c4859d75d2e--readline--8.1.1.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/sqlite-3.36
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/f624e7fc68307d01f25a03c15c0a84ff3b65d4d984d85616e4181a685efd0548--sqlite-3.36.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/c27cd6f405f31a0171c05374d0dc9c4281f577e1822b52f5914cb2f40b647a7b--sqlite--3.36.0.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/xz-5.2.5.bi
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/e0bdf85c3f0c045489f742a0c30762e1551b30588d84628a90347d3627446a76--xz-5.2.5.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/python%403.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.8
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/c05b731ab97facb21ab036a11b1e31d2bb1e71d4ce9ce75e1d414b5416fd8b95--python@3.9-3.9.8.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:4d3f29d
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/51bdb0791418da5932ab5d52ece6093fd143d108dc3bdef6f30d37d8f4a7773f--python@3.9--3.9.8.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/node-17.0.1
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/17.0.1-1
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/cbd94ed35e15772c3b3b2606efc791987518c8378912da16a4185771879f5730--node-17.0.1-1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:5dd16b4fb13f7
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/fc1255089aa605d0878f37fc41a8035a724c004bc2fcd5b09cde5434b00bcd2a--node--17.0.1.big_sur.bottle.1.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/yarn-1.22.1
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/yarn/manifests/1.22.17-1
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/21f689332c91e9425ac1ef10e1239938bb1178c61709c8454c5552941adbfb00--yarn-1.22.17-1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/yarn/blobs/sha256:2d9cb60cd75e2
Already downloaded: /Users/miyufeng/Library/Caches/Homebrew/downloads/d2cc20591263cfcc2fcfad5d8ff11ea16afdb574769f4d73cd8407ad24db52d6--yarn--1.22.17.all.bottle.1.tar.gz
==> Installing dependencies for yarn: c-ares, icu4c, libnghttp2, libuv, gdbm, mpdecimal, readline, sqlite, xz, python@3.9 and node
==> Installing yarn dependency: c-ares
==> Pouring c-ares-1.18.1.big_sur.bottle.tar.gz
Error: No such file or directory @ rb_sysopen - /Users/miyufeng/Library/Caches/Homebrew/downloads/91576d6daa41454f5bff29c9179195e987d23bfacb5ba08dbd316ec450706b87--c-ares-1.18.1.big_sur.bottle.tar.gz
miyufeng@MacBook-Pro demo % 

启动umi项目

src/pages下打开终端yarn start

miyufeng@MacBook-Pro pages % yarn start
yarn run v1.22.17
warning ../../../../package.json: No license field
$ umi dev
/bin/sh: umi: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

需要在【项目下】安装umi

参考: https://blog.csdn.net/wlm123565/article/details/108146085
使用: yarn add umi 进行安装

miyufeng@MacBook-Pro pages % yarn add umi
yarn add v1.22.17
warning ../../../../package.json: No license field
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > intl-messageformat-parser > @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > intl-messageformat > intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
warning @umijs/preset-react > @umijs/plugin-dva > dva > dva-core > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning @umijs/preset-react > @umijs/plugin-antd > antd-mobile > babel-runtime > core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @umijs/preset-react > @umijs/plugin-antd > antd-mobile > rc-swipeout > react-native-swipeout@2.3.6: Package no longer supported. Use at your own risk or consider using https://github.com/software-mansion/react-native-gesture-handler
warning @umijs/preset-react > @umijs/plugin-antd > antd-mobile > rmc-list-view > fbjs > core-js@1.2.7: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > jest-haste-map > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > request > har-validator@5.1.5: this library is no longer supported
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
warning react-highlight-words > memoize-one@4.1.0: New custom equality api does not play well with all equality helpers. Please use v5.x
warning umi > @umijs/runtime > @types/react-router > @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed.
warning umi > @umijs/runtime > @types/react-router-dom > @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed.
warning umi > @umijs/preset-built-in > @types/react-router-config > @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed.
warning umi > @umijs/bundler-webpack > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning umi > @umijs/bundler-webpack > node-libs-browser > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@umijs/preset-react > @umijs/plugin-layout@0.18.1" has unmet peer dependency "@ant-design/icons@^4.0.0".
warning "@umijs/preset-react > @umijs/plugin-layout@0.18.1" has unmet peer dependency "@ant-design/pro-layout@^6.0.0".
warning "@umijs/preset-react > @umijs/plugin-dva > babel-plugin-dva-hmr@0.4.2" has unmet peer dependency "redbox-react@1.x".
warning "@umijs/preset-react > @umijs/plugin-dva > dva-loading@3.0.22" has unmet peer dependency "dva-core@^1.1.0 | ^1.5.0-0 | ^1.6.0-0".
warning "@umijs/preset-react > @umijs/plugin-dva > dva > connected-react-router@6.5.2" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
warning " > echarts-for-react@2.0.16" has unmet peer dependency "prop-types@^15.5.7".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 639 new dependencies.
info Direct dependencies
├─ @umijs/preset-react@1.8.30
├─ @umijs/test@3.5.21
├─ antd@4.19.1
├─ axios@0.19.2
├─ echarts-for-react@2.0.16
├─ echarts@4.9.0
├─ lint-staged@10.5.4
├─ prettier@1.19.1
├─ react-dom@16.14.0
├─ react-highlight-words@0.16.0
├─ react@16.14.0
├─ umi@3.5.21
└─ yorkie@2.0.0
info All dependencies
├─ @ahooksjs/use-request@2.8.15
├─ @ampproject/remapping@2.1.2
├─ @ant-design/icons-svg@4.2.1
├─ @babel/compat-data@7.17.0
├─ @babel/core@7.12.10
├─ @babel/generator@7.17.3
├─ @babel/helper-function-name@7.16.7
├─ @babel/helper-get-function-arity@7.16.7
├─ @babel/helper-hoist-variables@7.16.7
├─ @babel/helper-module-imports@7.16.7
├─ @babel/helper-module-transforms@7.17.6
├─ @babel/helper-plugin-utils@7.16.7
├─ @babel/helper-simple-access@7.16.7
├─ @babel/helper-validator-option@7.16.7
├─ @babel/helpers@7.17.2
├─ @babel/highlight@7.16.10
├─ @babel/parser@7.17.3
├─ @babel/plugin-syntax-async-generators@7.8.4
├─ @babel/plugin-syntax-bigint@7.8.3
├─ @babel/plugin-syntax-class-properties@7.12.13
├─ @babel/plugin-syntax-import-meta@7.10.4
├─ @babel/plugin-syntax-json-strings@7.8.3
├─ @babel/plugin-syntax-logical-assignment-operators@7.10.4
├─ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
├─ @babel/plugin-syntax-numeric-separator@7.10.4
├─ @babel/plugin-syntax-object-rest-spread@7.8.3
├─ @babel/plugin-syntax-optional-catch-binding@7.8.3
├─ @babel/plugin-syntax-optional-chaining@7.8.3
├─ @babel/plugin-syntax-top-level-await@7.14.5
├─ @babel/template@7.16.7
├─ @babel/traverse@7.17.3
├─ @bcoe/v8-coverage@0.2.3
├─ @bloomberg/record-tuple-polyfill@0.0.3
├─ @cnakazawa/watch@1.0.4
├─ @formatjs/intl-displaynames@1.2.10
├─ @formatjs/intl-listformat@1.4.8
├─ @formatjs/intl-pluralrules@1.5.9
├─ @formatjs/intl-relativetimeformat@4.5.16
├─ @istanbuljs/load-nyc-config@1.1.0
├─ @jest/globals@26.6.2
├─ @jest/reporters@26.6.2
├─ @jest/test-sequencer@26.6.3
├─ @jridgewell/resolve-uri@3.0.5
├─ @jridgewell/sourcemap-codec@1.4.11
├─ @jridgewell/trace-mapping@0.3.4
├─ @qixian.cs/path-to-regexp@6.1.0
├─ @sinonjs/commons@1.8.3
├─ @sinonjs/fake-timers@6.0.1
├─ @tootallnate/once@1.1.2
├─ @types/babel__core@7.1.18
├─ @types/babel__generator@7.6.4
├─ @types/babel__template@7.4.1
├─ @types/babel__traverse@7.14.2
├─ @types/graceful-fs@4.1.5
├─ @types/hoist-non-react-statics@3.3.1
├─ @types/invariant@2.2.35
├─ @types/isomorphic-fetch@0.0.35
├─ @types/istanbul-lib-coverage@2.0.4
├─ @types/istanbul-reports@3.0.1
├─ @types/json-schema@7.0.9
├─ @types/normalize-package-data@2.4.1
├─ @types/parse-json@4.0.0
├─ @types/prettier@2.4.4
├─ @types/react-helmet@6.1.5
├─ @types/react-redux@7.1.23
├─ @types/react-router-config@5.0.2
├─ @types/react-router-dom@5.1.7
├─ @types/stack-utils@2.0.1
├─ @umijs/ast@3.5.21
├─ @umijs/babel-plugin-auto-css-modules@3.5.21
├─ @umijs/babel-plugin-import-to-await-require@3.5.21
├─ @umijs/babel-plugin-lock-core-js-3@3.5.21
├─ @umijs/babel-plugin-no-anonymous-default-export@3.5.21
├─ @umijs/bundler-utils@3.5.21
├─ @umijs/plugin-access@2.4.2
├─ @umijs/plugin-analytics@0.2.2
├─ @umijs/plugin-antd@0.13.0
├─ @umijs/plugin-crossorigin@1.2.1
├─ @umijs/plugin-dva@0.13.0
├─ @umijs/plugin-helmet@1.1.3
├─ @umijs/plugin-initial-state@2.4.0
├─ @umijs/plugin-layout@0.18.1
├─ @umijs/plugin-locale@0.15.1
├─ @umijs/plugin-model@2.6.2
├─ @umijs/plugin-request@2.8.0
├─ @umijs/plugin-test@1.0.2
├─ @umijs/preset-built-in@3.5.21
├─ @umijs/preset-react@1.8.30
├─ @umijs/renderer-mpa@3.5.21
├─ @umijs/route-utils@2.0.5
├─ @umijs/test@3.5.21
├─ abab@2.0.5
├─ acorn-globals@4.3.4
├─ acorn-walk@6.2.0
├─ acorn@6.4.2
├─ add-dom-event-listener@1.1.0
├─ aggregate-error@3.1.0
├─ ajv-errors@1.0.1
├─ ajv-keywords@3.5.2
├─ ajv@6.12.6
├─ ansi-colors@4.1.1
├─ ansi-escapes@4.3.2
├─ ansi-html@0.0.7
├─ ansi-regex@5.0.1
├─ antd-mobile@2.3.4
├─ antd@4.19.1
├─ arch@2.2.0
├─ argparse@1.0.10
├─ arr-flatten@1.1.0
├─ array-equal@1.0.0
├─ array-tree-filter@2.1.0
├─ asap@2.0.6
├─ asn1.js@5.4.1
├─ asn1@0.2.6
├─ assert@1.5.0
├─ assign-symbols@1.0.0
├─ async-limiter@1.0.1
├─ async-validator@4.0.7
├─ atob@2.1.2
├─ autoprefixer@9.8.8
├─ aws-sign2@0.7.0
├─ aws4@1.11.0
├─ axios@0.19.2
├─ babel-core@7.0.0-bridge.0
├─ babel-plugin-dva-hmr@0.4.2
├─ babel-plugin-jest-hoist@26.6.2
├─ babel-preset-current-node-syntax@1.0.1
├─ babel-preset-jest@26.6.2
├─ base@0.11.2
├─ base64-js@1.5.1
├─ bcrypt-pbkdf@1.0.2
├─ big.js@5.2.2
├─ binary-extensions@2.2.0
├─ bindings@1.5.0
├─ brace-expansion@1.1.11
├─ braces@3.0.2
├─ brorand@1.1.0
├─ browser-process-hrtime@1.0.0
├─ browserify-aes@1.2.0
├─ browserify-cipher@1.0.1
├─ browserify-des@1.0.2
├─ browserify-rsa@4.1.0
├─ browserify-sign@4.2.1
├─ browserify-zlib@0.2.0
├─ browserslist@4.20.0
├─ bser@2.1.1
├─ buffer-from@1.1.2
├─ buffer-xor@1.0.3
├─ buffer@4.9.2
├─ builtin-status-codes@3.0.0
├─ cache-base@1.0.1
├─ caller-callsite@2.0.0
├─ caller-path@2.0.0
├─ camelcase@5.3.1
├─ caniuse-lite@1.0.30001314
├─ capture-exit@2.0.0
├─ caseless@0.12.0
├─ char-regex@1.0.2
├─ chokidar@3.5.1
├─ ci-info@2.0.0
├─ cipher-base@1.0.4
├─ cjs-module-lexer@0.6.0
├─ class-utils@0.3.6
├─ clean-stack@2.2.0
├─ cli-cursor@3.1.0
├─ clipboardy@2.3.0
├─ cliui@6.0.0
├─ co@4.6.0
├─ collection-visit@1.0.0
├─ color-convert@2.0.1
├─ color-name@1.1.4
├─ colorette@2.0.16
├─ combined-stream@1.0.8
├─ commander@6.2.1
├─ component-classes@1.2.6
├─ component-indexof@0.0.3
├─ compute-scroll-into-view@1.0.17
├─ concat-map@0.0.1
├─ connected-react-router@6.5.2
├─ console-browserify@1.2.0
├─ constants-browserify@1.0.0
├─ convert-source-map@1.8.0
├─ copy-descriptor@0.1.1
├─ core-js-pure@3.21.1
├─ core-util-is@1.0.3
├─ cosmiconfig@7.0.1
├─ create-ecdh@4.0.4
├─ create-hmac@1.1.7
├─ create-react-class@15.7.0
├─ cross-spawn@6.0.5
├─ crypto-browserify@3.12.0
├─ css-animation@1.6.1
├─ css-blank-pseudo@0.1.4
├─ css-has-pseudo@0.10.0
├─ css-prefers-color-scheme@3.1.1
├─ cssdb@4.4.0
├─ cssesc@2.0.0
├─ cssom@0.3.8
├─ cssstyle@1.4.0
├─ dashdash@1.14.1
├─ data-urls@1.1.0
├─ date-fns@2.28.0
├─ dayjs@1.10.8
├─ debug@4.3.3
├─ decimal.js@10.3.1
├─ dedent@0.7.0
├─ deep-is@0.1.4
├─ deepmerge@1.5.2
├─ delayed-stream@1.0.0
├─ des.js@1.0.1
├─ detect-newline@3.1.0
├─ diff-sequences@26.6.2
├─ diffie-hellman@5.0.3
├─ dom-align@1.12.2
├─ dom-walk@0.1.2
├─ domain-browser@1.2.0
├─ dva-core@2.0.4
├─ dva-immer@0.5.2
├─ dva-loading@3.0.22
├─ dva@2.6.0-beta.22
├─ ecc-jsbn@0.1.2
├─ echarts-for-react@2.0.16
├─ echarts@4.9.0
├─ electron-to-chromium@1.4.81
├─ emittery@0.7.2
├─ emoji-regex@8.0.0
├─ emojis-list@3.0.0
├─ encoding@0.1.13
├─ end-of-stream@1.4.4
├─ enquirer@2.3.6
├─ error-stack-parser@2.0.7
├─ es-abstract@1.19.1
├─ es-module-lexer@0.7.1
├─ es-to-primitive@1.2.1
├─ es5-imcompatible-versions@0.1.73
├─ esbuild@0.12.15
├─ escalade@3.1.1
├─ escodegen@1.14.3
├─ esprima@4.0.1
├─ estraverse@4.3.0
├─ events@3.3.0
├─ exenv@1.2.2
├─ expand-brackets@2.1.4
├─ extend@3.0.2
├─ extglob@2.0.4
├─ extsprintf@1.3.0
├─ fast-deep-equal@3.1.3
├─ fast-levenshtein@2.0.6
├─ fbjs@0.8.18
├─ file-uri-to-path@1.0.0
├─ fill-range@7.0.1
├─ filter-obj@1.1.0
├─ follow-redirects@1.5.10
├─ for-each@0.3.3
├─ for-in@1.0.2
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ fs.realpath@1.0.0
├─ fsevents@2.3.2
├─ gensync@1.0.0-beta.2
├─ get-caller-file@2.0.5
├─ get-intrinsic@1.1.1
├─ get-own-enumerable-property-symbols@3.0.2
├─ get-package-type@0.1.0
├─ get-stream@4.1.0
├─ get-symbol-description@1.0.0
├─ get-value@2.0.6
├─ getpass@0.1.7
├─ glob-parent@5.1.2
├─ globals@11.12.0
├─ graceful-fs@4.2.9
├─ growly@1.3.0
├─ har-schema@2.0.0
├─ har-validator@5.1.5
├─ harmony-reflect@1.6.2
├─ has-value@1.0.0
├─ hash.js@1.1.7
├─ highlight-words-core@1.2.2
├─ hmac-drbg@1.0.1
├─ hosted-git-info@2.8.9
├─ html-encoding-sniffer@1.0.2
├─ html-entities@2.3.2
├─ html-escaper@2.0.2
├─ http-proxy-agent@4.0.1
├─ http-signature@1.2.0
├─ https-browserify@1.0.0
├─ https-proxy-agent@5.0.0
├─ human-signals@1.1.1
├─ iconv-lite@0.4.24
├─ identity-obj-proxy@3.0.0
├─ ieee754@1.2.1
├─ immer@7.0.15
├─ immutable@3.8.2
├─ import-cwd@2.1.0
├─ import-fresh@3.3.0
├─ import-from@2.1.0
├─ indent-string@4.0.0
├─ inflight@1.0.6
├─ internal-slot@1.0.3
├─ intl-messageformat@7.8.4
├─ intl@1.2.5
├─ is-accessor-descriptor@1.0.0
├─ is-arrayish@0.2.1
├─ is-bigint@1.0.4
├─ is-binary-path@2.1.0
├─ is-boolean-object@1.1.2
├─ is-callable@1.2.4
├─ is-core-module@2.8.1
├─ is-data-descriptor@1.0.0
├─ is-date-object@1.0.5
├─ is-descriptor@1.0.2
├─ is-directory@0.3.1
├─ is-docker@2.2.1
├─ is-extglob@2.1.1
├─ is-generator-fn@2.1.0
├─ is-glob@4.0.3
├─ is-negative-zero@2.0.2
├─ is-number-object@1.0.6
├─ is-obj@1.0.1
├─ is-plain-obj@1.1.0
├─ is-potential-custom-element-name@1.0.1
├─ is-regex@1.1.4
├─ is-regexp@1.0.0
├─ is-shared-array-buffer@1.0.1
├─ is-string@1.0.7
├─ is-symbol@1.0.4
├─ is-unicode-supported@0.1.0
├─ is-weakref@1.0.2
├─ is-windows@1.0.2
├─ is-wsl@2.2.0
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ isomorphic-fetch@2.2.1
├─ isstream@0.1.2
├─ istanbul-lib-instrument@5.1.0
├─ istanbul-lib-source-maps@4.0.1
├─ istanbul-reports@3.1.4
├─ javascript-stringify@2.1.0
├─ jest-changed-files@26.6.2
├─ jest-docblock@26.0.0
├─ jest-each@26.6.2
├─ jest-environment-jsdom-fourteen@1.0.1
├─ jest-environment-jsdom@26.6.2
├─ jest-environment-node@26.6.2
├─ jest-jasmine2@26.6.3
├─ jest-leak-detector@26.6.2
├─ jest-pnp-resolver@1.2.2
├─ jest-resolve-dependencies@26.6.3
├─ jest-serializer@26.6.2
├─ jest-watcher@26.6.2
├─ jest-worker@26.6.2
├─ jest@26.6.3
├─ js-tokens@4.0.0
├─ jsdom@14.1.0
├─ jsesc@2.5.2
├─ json-parse-better-errors@1.0.2
├─ json-parse-even-better-errors@2.3.1
├─ json-schema-traverse@0.4.1
├─ json-schema@0.4.0
├─ json-stringify-safe@5.0.1
├─ json2mq@0.2.0
├─ jsprim@1.4.2
├─ kind-of@3.2.2
├─ kleur@3.0.3
├─ leven@3.1.0
├─ levn@0.3.0
├─ lines-and-columns@1.2.4
├─ lint-staged@10.5.4
├─ listr2@3.14.0
├─ load-json-file@4.0.0
├─ loader-utils@1.4.0
├─ locate-path@5.0.0
├─ lodash.debounce@4.0.8
├─ lodash.isequal@4.5.0
├─ lodash.sortby@4.7.0
├─ lodash.throttle@4.1.1
├─ log-symbols@4.1.0
├─ log-update@4.0.0
├─ lru-cache@4.1.5
├─ make-dir@3.1.0
├─ makeerror@1.0.12
├─ map-visit@1.0.0
├─ miller-rabin@4.0.1
├─ mime-db@1.51.0
├─ mime@1.3.6
├─ mimic-fn@2.1.0
├─ min-document@2.19.0
├─ mixin-deep@1.3.2
├─ mkdirp@0.5.5
├─ nan@2.15.0
├─ nanomatch@1.2.13
├─ natural-compare@1.4.0
├─ nice-try@1.0.5
├─ node-fetch@1.7.3
├─ node-int64@0.4.0
├─ node-libs-browser@2.2.1
├─ node-notifier@8.0.2
├─ node-releases@2.0.2
├─ normalize-package-data@2.5.0
├─ normalize-range@0.1.2
├─ normalize-url@1.9.1
├─ normalize.css@7.0.0
├─ num2fraction@1.2.2
├─ nwsapi@2.2.0
├─ oauth-sign@0.9.0
├─ object-copy@0.1.0
├─ object-inspect@1.12.0
├─ object.assign@4.1.2
├─ object.getownpropertydescriptors@2.1.3
├─ once@1.4.0
├─ os-browserify@0.3.0
├─ p-each-series@2.2.0
├─ p-limit@2.3.0
├─ p-locate@4.1.0
├─ p-map@4.0.0
├─ p-try@2.2.0
├─ pako@1.0.11
├─ parent-module@1.0.1
├─ parse-asn1@5.1.6
├─ parse5@5.1.0
├─ pascalcase@0.1.1
├─ path-browserify@0.0.1
├─ path-exists@4.0.0
├─ path-is-absolute@1.0.1
├─ path-key@2.0.1
├─ path-parse@1.0.7
├─ path-type@4.0.0
├─ picomatch@2.3.1
├─ pkg-dir@4.2.0
├─ please-upgrade-node@3.2.0
├─ pn@1.1.0
├─ posix-character-classes@0.1.1
├─ postcss-attribute-case-insensitive@4.0.2
├─ postcss-color-functional-notation@2.0.1
├─ postcss-color-gray@5.0.0
├─ postcss-color-hex-alpha@5.0.3
├─ postcss-color-mod-function@3.0.3
├─ postcss-color-rebeccapurple@4.0.1
├─ postcss-custom-media@7.0.8
├─ postcss-custom-properties@8.0.11
├─ postcss-custom-selectors@5.1.2
├─ postcss-dir-pseudo-class@5.0.0
├─ postcss-double-position-gradients@1.0.0
├─ postcss-env-function@2.0.2
├─ postcss-flexbugs-fixes@4.2.1
├─ postcss-focus-visible@4.0.0
├─ postcss-focus-within@3.0.0
├─ postcss-font-variant@4.0.1
├─ postcss-gap-properties@2.0.0
├─ postcss-image-set-function@3.0.1
├─ postcss-initial@3.0.4
├─ postcss-lab-function@2.0.1
├─ postcss-load-config@2.1.2
├─ postcss-loader@3.0.0
├─ postcss-logical@3.0.0
├─ postcss-media-minmax@4.0.0
├─ postcss-nesting@7.0.1
├─ postcss-overflow-shorthand@2.0.0
├─ postcss-page-break@2.0.0
├─ postcss-place@4.0.1
├─ postcss-preset-env@6.7.0
├─ postcss-pseudo-class-any-link@6.0.0
├─ postcss-replace-overflow-wrap@3.0.0
├─ postcss-safe-parser@4.0.2
├─ postcss-selector-matches@4.0.0
├─ postcss-selector-not@4.0.1
├─ postcss-value-parser@4.2.0
├─ prepend-http@1.0.4
├─ prettier@1.19.1
├─ process-nextick-args@2.0.1
├─ promise@7.3.1
├─ prompts@2.4.2
├─ pseudomap@1.0.2
├─ psl@1.8.0
├─ public-encrypt@4.0.3
├─ qs@6.10.3
├─ query-string@4.3.4
├─ querystring-es3@0.2.1
├─ querystring@0.2.0
├─ raf@3.4.1
├─ randomfill@1.0.4
├─ rc-align@4.0.11
├─ rc-gesture@0.0.22
├─ rc-overflow@1.2.4
├─ rc-swipeout@2.0.11
├─ rc-virtual-list@3.4.4
├─ react-dom@16.14.0
├─ react-fast-compare@3.2.0
├─ react-helmet@6.1.0
├─ react-highlight-words@0.16.0
├─ react-intl@3.12.1
├─ react-native-swipeout@2.3.6
├─ react-redux@7.2.6
├─ react-refresh@0.10.0
├─ react-side-effect@2.1.1
├─ react-tween-state@0.1.5
├─ react@16.14.0
├─ read-pkg-up@7.0.1
├─ read-pkg@5.2.0
├─ readable-stream@2.3.7
├─ readdirp@3.5.0
├─ realpath-native@1.1.0
├─ redux-saga@0.16.2
├─ redux@4.1.2
├─ remove-trailing-separator@1.1.0
├─ repeat-element@1.1.4
├─ request-promise-core@1.1.4
├─ request-promise-native@1.0.9
├─ request@2.88.2
├─ require-directory@2.1.1
├─ resolve-cwd@3.0.0
├─ resolve-url@0.2.1
├─ resolve@1.22.0
├─ restore-cursor@3.1.0
├─ ret@0.1.15
├─ rfdc@1.3.0
├─ rimraf@3.0.2
├─ ripemd160@2.0.2
├─ rmc-align@1.0.0
├─ rmc-calendar@1.1.4
├─ rmc-cascader@5.0.3
├─ rmc-dialog@1.1.1
├─ rmc-drawer@0.4.11
├─ rmc-input-number@1.0.5
├─ rmc-list-view@0.11.5
├─ rmc-notification@1.0.0
├─ rmc-nuka-carousel@3.0.1
├─ rmc-pull-to-refresh@1.0.13
├─ rmc-steps@1.0.1
├─ rmc-tabs@1.2.29
├─ rmc-tooltip@1.0.1
├─ rmc-trigger@1.0.12
├─ rsvp@4.8.5
├─ rxjs@7.5.5
├─ saxes@3.1.11
├─ scheduler@0.19.1
├─ schema-utils@3.1.1
├─ seamless-immutable@7.1.4
├─ semver-compare@1.0.0
├─ set-blocking@2.0.0
├─ set-value@2.0.1
├─ setimmediate@1.0.5
├─ shallow-equal@1.2.1
├─ shebang-regex@1.0.0
├─ shellwords@0.1.1
├─ sisteransi@1.0.5
├─ size-sensor@1.0.1
├─ slice-ansi@3.0.0
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ sort-keys@1.1.2
├─ source-map-resolve@0.5.3
├─ source-map-support@0.5.21
├─ source-map-url@0.4.1
├─ spdx-correct@3.1.1
├─ spdx-exceptions@2.3.0
├─ split-on-first@1.1.0
├─ split-string@3.1.0
├─ sprintf-js@1.0.3
├─ sshpk@1.17.0
├─ stack-utils@2.0.5
├─ stackframe@1.2.1
├─ static-extend@0.1.2
├─ stealthy-require@1.1.1
├─ stream-browserify@2.0.2
├─ stream-http@2.8.3
├─ strict-uri-encode@1.1.0
├─ string_decoder@1.3.0
├─ string-argv@0.3.1
├─ string-convert@0.2.1
├─ string.prototype.trimend@1.0.4
├─ string.prototype.trimstart@1.0.4
├─ stringify-object@3.3.0
├─ strip-bom@4.0.0
├─ strip-final-newline@2.0.0
├─ strip-indent@2.0.0
├─ supports-hyperlinks@2.2.0
├─ supports-preserve-symlinks-flag@1.0.0
├─ symbol-tree@3.2.4
├─ terminal-link@2.1.1
├─ terser@5.6.0
├─ test-exclude@6.0.0
├─ through@2.3.8
├─ timers-browserify@2.0.12
├─ tmpl@1.0.5
├─ to-arraybuffer@1.0.1
├─ to-fast-properties@2.0.0
├─ to-object-path@0.3.0
├─ to-regex-range@5.0.1
├─ toggle-selection@1.0.6
├─ tough-cookie@2.5.0
├─ tr46@1.0.1
├─ tslib@2.3.1
├─ tty-browserify@0.0.0
├─ tunnel-agent@0.6.0
├─ tween-functions@1.2.0
├─ tweetnacl@0.14.5
├─ type-detect@4.0.8
├─ type-fest@0.21.3
├─ typedarray-to-buffer@3.1.5
├─ ua-parser-js@0.7.31
├─ umi-request@1.4.0
├─ umi@3.5.21
├─ unbox-primitive@1.0.1
├─ union-value@1.0.1
├─ universalify@0.1.2
├─ unset-value@1.0.0
├─ uri-js@4.4.1
├─ urix@0.1.0
├─ url@0.11.0
├─ use-subscription@1.5.1
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ util.promisify@1.1.1
├─ util@0.11.1
├─ uuid@3.4.0
├─ v8-compile-cache@2.3.0
├─ v8-to-istanbul@7.1.2
├─ validate-npm-package-license@3.0.4
├─ verror@1.10.0
├─ vm-browserify@1.1.2
├─ w3c-hr-time@1.0.2
├─ w3c-xmlserializer@1.1.2
├─ walker@1.0.8
├─ whatwg-fetch@3.6.2
├─ which-boxed-primitive@1.0.2
├─ which-module@2.0.0
├─ word-wrap@1.2.3
├─ write-file-atomic@3.0.3
├─ ws@6.2.2
├─ xmlchars@2.2.0
├─ xtend@4.0.2
├─ y18n@4.0.3
├─ yallist@2.1.2
├─ yaml@1.10.2
├─ yargs-parser@18.1.3
├─ yorkie@2.0.0
├─ zrender@4.3.2
└─ zscroller@0.4.8
$ umi generate tmp
✨  Done in 77.71s.
miyufeng@MacBook-Pro pages % umi -v      
umi@3.5.21

启动后的控制台

miyufeng@MacBook-Pro pages % yarn start  
yarn run v1.22.17
warning ../../../../package.json: No license field
$ umi dev
Starting the development server...

✔ Webpack
  Compiled successfully in 34.16s

 WARNING  Compiled with 0 warnings                                                                                                                                                                                            4:51:04 PM


  App running at:
  - Local:   http://localhost:8000 (copied to clipboard)
  - Network: http://172.20.10.2:8000

启动时间有点慢,试试新出的 MFSU 方案,1s+ 完成启动,详见 https://github.com/umijs/umi/issues/6766

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

悠闲的线程池

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值