ant-design / ant-design-pro-cli

Cli tool of Ant Design Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pro init is not working

afc163 opened this issue · comments

npm install ant-design-pro-cli -g
mkdir my-project && cd my-project
pro init
pro -V
0.2.0

There are pro new and pro generate with same function, are they duplicated?

commented

https://github.com/ant-design/ant-design-pro-cli#changelog

哈哈,我改了。。。0.2.0 =。-

image

pro new 好像不太对。

commented

@afc163 是的,我改挂了。。。

另外 pro 的 README 和文档要同步更新。否则会有人踩坑的。

ant-design/ant-design#8121
ant-design/ant-design#8120

commented

好的。。。

commented

我还以为我环境有问题。。

我还以为我连Readme都读不懂了

坑爹啊,你代码revert了,但是npm 没有publish T_T,就说搞半天怎么init不了~~

commented

😿 😿 😿 各位不好意思,家里环境有问题,npm 一直 publish 不上去,可以先用 0.1.5 版本,功能是一样的,就是改了命令的名字。。。。

  • 0.1.5
    • init -> 初始化(new)
    • new -> 创建模板(generator)
  • 0.2.0
    • new -> 初始化
    • generator -> 创建模板
commented

done