Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用yarn create umi myapp模版问题🧐[问题] #9930

Closed
shizhier opened this issue Jun 21, 2022 · 10 comments
Closed

使用yarn create umi myapp模版问题🧐[问题] #9930

shizhier opened this issue Jun 21, 2022 · 10 comments

Comments

@shizhier
Copy link

🧐 问题描述

umi4.0后,现在使用yarn creat umi app,默认使用的是Umi4.0。如何才可以使用原来的模版???

💻 示例代码

yarn create umi myapp 默认umi 4.0

🚑 其他信息

@erichow
Copy link

erichow commented Jun 21, 2022

#9936
我跟你同样的问题,之前好好的,现在找不到模版了

@edifangyi
Copy link

两天了 没人处理吗???

@yuli-lovely
Copy link

官方大大快出来

@dgsfor
Copy link

dgsfor commented Jun 23, 2022

使用如下命令来创建老的项目:

  1. yarn create umi@0.27.0 umi3-app
  2. 上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
  3. yarn add create-umi@0.27.0
  4. create-umi.cmd myapp2
@4LostGreyWolf
Copy link

直接整成 umijs/max 的框架了

@4LostGreyWolf
Copy link

4LostGreyWolf commented Jun 27, 2022

文档也不改一下,配置信息也不能用,现在的模板样式都不能调整,umi也没文档。

@kkh666
Copy link

kkh666 commented Aug 15, 2022

create-umi.cmd myapp2 请问这个命令提示不存在是咋回事呀 没看懂cmd路径改一下要咋改 @gsgs-libin @shizhier

@denghuishenmi
Copy link

先在全局配置上添加create-umi命令,然后再使用添加的create-umi命令去指定项目名称生成项目即可创建umi3的项目。

yarn global add create-umi@0.27.0
create-umi myapp

@denghuishenmi
Copy link

create-umi.cmd myapp2 请问这个命令提示不存在是咋回事呀 没看懂cmd路径改一下要咋改 @gsgs-libin @shizhier

先在全局配置上添加create-umi命令,然后再使用添加的create-umi命令去指定项目名称生成项目即可创建umi3的项目。

yarn global add create-umi@0.27.0
create-umi myapp

以后创建umi3.0的项目都是用该命令,如果重新使用了yarn create umi myapp会导致配置被覆盖,需要重新按上述添加命令

@robeterlk
Copy link

create-umi.cmd myapp2 请问这个命令提示不存在是咋回事呀 没看懂cmd路径改一下要咋改 @gsgs-libin @shizhier

先在全局配置上添加create-umi命令,然后再使用添加的create-umi命令去指定项目名称生成项目即可创建umi3的项目。

yarn global add create-umi@0.27.0 create-umi myapp

以后创建umi3.0的项目都是用该命令,如果重新使用了yarn create umi myapp会导致配置被覆盖,需要重新按上述添加命令

你好,我照着你的来,create-umi myapp显示不是内部命令,前面的和你描述的一样的,这是什么原因导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants