-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature Request] 简化初始化 umi 脚手架的操作 #10011
Comments
业界里本身共识就是 后面可带可不带文件夹名的。 如果感觉容易产生疑惑,可以把文档优化下,改成 |
这行命令你成功运行了吗,我使用 pnpm 和 yarn 都可以,但是 npm 却不行。 |
node: v18.12.1 我使用的不是 运行 vite 的起步命令没有问题 报错信息: ENOTEMPTY: directory not empty, rename '/path/to/.npm/_npx/2c52c20452535a0f/node_modules/@umijs/utils'
-> '/path/to/.npm/_npx/2c52c20452535a0f/node_modules/@umijs/.utils-ipVeybw0' 可能只是我的电脑不行,不过不行也没关系,我平常也不用 npm,测试 npm 的原因只是本来想更新一下文档。 |
这个调整在一个git仓库目录初始化项目的场景下,是不是很难受 |
Background
在文档的 说明 中,现在初始化脚手架需要两步:
这个命令好像有点长到难以记住。
Proposal
希望直接一行命令完成创建:
接下来如果没有指定文件名,可以直接有默认的文件名:
Additional context
目前已经支持
pnpm create umi [project-name]
的形式,不过可能有点隐藏,有些同学可能不知道。The text was updated successfully, but these errors were encountered: