Ant Design Pro的使用
初始化:
安装:npm install -g yarn
查看版本 :>yarn --version (并行下载)
1.22.18
初始化:yarn create umi myapp
好的报错:
yarn create v1.22.18 [1/4] Resolving packages... warning create-umi > sylvanas > @umijs/fabric > stylelint > @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown warning create-umi > yeoman-environment > globby > fast-glob > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning create-umi > yeoman-environment > globby > fast-glob > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning create-umi > yeoman-environment > globby > fast-glob > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning create-umi > yeoman-environment > globby > fast-glob > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated [2/4] Fetching packages... error @typescript-eslint/parser@5.16.0: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.16.1" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
百度一下 :
输入 yarn config set ignore-engines true 修复版本node js
继续:
yarn create umi myapp;
成功 !
选择 第一个简单的项目!
选择语言 typeScript
simple 简单的新项目
初始化完成
下载依赖
yarn 命令
下载依赖
完成!