使用ionic 2 CLI创建ionic 1.x应用程序



我下载了ionic 2,可以用它创建应用程序。我按照命令来做

ionic start cutePuppyPics1 --v2

然而,我仍然想创建1.x应用程序。我如何才能做到这一点,而不在全球范围内去除离子并做出全球改变?

类似的东西

ionic start cutePuppyPics1 --v1

安装离子1.x.

我不想在全球范围内移除整个离子模块,然后重新开始。

谢谢。

现在Ionic更新了文档。

如果我们想创建旧版本的Ionic应用程序,请在创建应用程序时声明版本号。

ionic start cutePuppyPics --type ionic1

创建Ionic应用程序的最新版本(即-V2或更高版本)。

ionic start cutePuppyPics

现在,如果您想使用cli 2获得v1应用程序,则不推荐使用这些应用程序必须使用

ionic start myApp --type ionic1

但是使用

ionic start myApp

将返回离子的最新版本

请尝试以下命令:

ionic start cutePuppyPics1 --type=ionic1

参考:https://github.com/ionic-team/ionic-cli

文档说明您可以在V2中运行V1。只需对V1项目使用"ionic start cutePudpyics1",对V2项目使用"ionic start cutEPudpyics2--V2"。http://ionicframework.com/docs/v2/getting-started/installation/

如果您没有指定--v2,它将为v1.x 创建

e.g ionic start myApp sidemenu

上面的命令创建v1.x项目

您可以尝试:

ionic start myApp --type=ionic1

参考:https://ionicframework.com/docs/intro/installation/

最新更新