ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.34k stars 8.14k forks source link

create-umi命令 创建项目时 “ant-design-pro” 选项找不到 🧐[问题] #9936

Closed erichow closed 2 years ago

erichow commented 2 years ago

🧐 问题描述

💻 示例代码

🚑 其他信息

erichow commented 2 years ago

? Select the boilerplate type (Use arrow keys) ❯ ant-design-pro - Create project with a layout-only ant-design-pro boilerplate, use together with umi block. app - Create project with a easy boilerplate, support typescript. block - Create a umi block. library - Create a library with umi. plugin - Create a umi plugin.

我想要上面这种的 simple 作为项目进行开发,但是现在找不到,变成了下面这样

erichow@zhoudamindeMacBook-Air workspace % npx create-umi pro ? Pick Umi App Template › - Use arrow-keys. Return to submit. ❯ Simple App Ant Design Pro Vue Simple App

chentao2022621 commented 2 years ago

我也遇到同样的问题了 ,按官方文档执行 yarn create umi myapp 后 出现的是 image

maqinghao commented 2 years ago

umi4.0 发布了吗,看官网没有更新呀! 同样遇到这个问题? 但是奇怪的是我在两台电脑上 效果不一样,npm版本不一样,一个是正常的克隆存储库,一个就是现在的问题了 image

LinruoT commented 2 years ago

我也是初学者,花了一上午才解决😂 create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

#上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
yarn add create-umi@0.27.0
C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2

Select the boilerplate type ant-design-pro Which language do you want to use? TypeScript Do you need all the blocks or a simple scaffold? Simple

tyanbiao commented 2 years ago

我也是初学者,花了一上午才解决😂 create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

#上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
yarn add create-umi@0.27.0
C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2

Select the boilerplate type ant-design-pro Which language do you want to use? TypeScript Do you need all the blocks or a simple scaffold? Simple

It works fine.

nqhd3v commented 2 years ago

oh no, when I run the command yarn create umi@0.27.0 ui01, it showed this error:

/bin/sh: /usr/local/bin/create-umi@0.27.0: No such file or directory

I am running it with node@16, Is something else?

nqhd3v commented 2 years ago

[UPDATE]

On MacOS, run some commands below to create a new app:

cd ~
yarn global add create-umi@0.27.0  
 ~/.config/yarn/global/node_modules/create-umi/cli.js your-app-name

Done, it should be something like that:

image
loocor commented 2 years ago

[UPDATE]

On MacOS, run some commands below to create a new app:

cd ~
yarn global add create-umi@0.27.0  
 ~/.config/yarn/global/node_modules/create-umi/cli.js your-app-name

Done, it should be something like that:

image

thanks bro. Did you know what release time of Ant Design Pro with umi4?

chentao2022621 commented 2 years ago

我也是初学者,花了一上午才解决😂 create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

#上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
yarn add create-umi@0.27.0
C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2

Select the boilerplate type ant-design-pro Which language do you want to use? TypeScript Do you need all the blocks or a simple scaffold? Simple

it work fine!

erichow commented 2 years ago

我也是初学者,花了一上午才解决😂 create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

#上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
yarn add create-umi@0.27.0
C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2

Select the boilerplate type ant-design-pro Which language do you want to use? TypeScript Do you need all the blocks or a simple scaffold? Simple

It works fine.

非常感谢~

Xinjb commented 2 years ago

我也是初学者,花了一上午才解决😂create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

#上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)
yarn add create-umi@0.27.0
C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2

选择样板类型 ant-design-pro 你想使用哪种语言?TypeScript 你需要所有的积木还是一个简单的脚手架?简单

我也是初学者,花了一上午才解决😂 create-umi已经升级到umi4的模板了,创建antd pro项目需要:

yarn create umi@0.27.0 umi3-app

上面这个会报错命令不存在,然后运行这两行就可以了(cmd路径改一下)

yarn add create-umi@0.27.0 C:\Users\linrt\AppData\Local\Yarn\bin\create-umi.cmd myapp2 Select the boilerplate type ant-design-pro Which language do you want to use? TypeScript Do you need all the blocks or a simple scaffold? Simple

robeterlk commented 1 year ago

create-umi.cmd myapp2

能详细说下cmd路径改一下应该怎么修改么

nqhd3v commented 1 year ago

create-umi.cmd myapp2

能详细说下cmd路径改一下应该怎么修改么

View my comment, https://github.com/ant-design/ant-design-pro/issues/9936#issuecomment-1162793366