Bar*_*ttt 0 ionic-framework ionic3
我使用以下命令来创建一个离子项目v3
ionic start myApp tabs
Run Code Online (Sandbox Code Playgroud)
但最终结果是ionic v4项目。
如何强制ionic创建v3项目而不是v4?
作为参考,您可以执行此操作而无需降级Ionic CLI。请注意,这--type=ionic-angular是Ionic 4 CLI所说的“ Ionic 3”的方式。这是对此的参考:https :
//github.com/ionic-team/ionic-cli/issues/3862
如果运行ionic start --list,它将显示可用的模板和项目类型。对于项目类型,angular将为Ionic 4,ionic-angular将为Ionic 3,ionic1实际上的名称很不错:-)
name | project type | description
--------------------------------------------------------------------------------------------------------------------------------
blank | angular | A blank starter project
sidemenu | angular | A starting project with a side menu with navigation in the content area
tabs | angular | A starting project with a simple tabbed interface
tabs | ionic-angular | A starting project with a simple tabbed interface
blank | ionic-angular | A blank starter project
sidemenu | ionic-angular | A starting project with a side menu with navigation in the content area
super | ionic-angular | A starting project complete with pre-built pages, providers and best practices for Ionic development.
tutorial | ionic-angular | A tutorial based project that goes along with the Ionic documentation
aws | ionic-angular | AWS Mobile Hub Starter
tabs | ionic1 | A starting project for Ionic using a simple tabbed interface
blank | ionic1 | A blank starter project for Ionic
sidemenu | ionic1 | A starting project for Ionic using a side menu with navigation in the content area
maps | ionic1 | An Ionic starter project using Google Maps and a side menu
Run Code Online (Sandbox Code Playgroud)
另请注意,您不会以科尔多瓦资产(例如config.xml)开始。第一次添加平台将把这些东西拉进去。
安装 Ionic 4 后,您可以使用以下命令创建 Ionic 3 项目
ionic start ProjectName blank --type=ionic-angular
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3288 次 |
| 最近记录: |