Создайте Ioni c проект более старой версии, используя Ioni c CLI - PullRequest
0 голосов
/ 18 марта 2020

Мне нужно использовать Ioni c 4 вместо 5 из-за совместимости. Как я могу инициализировать новый проект ioni c 4?

Согласно Ioni c CLI docs

Use the --type option to start projects using older versions of Ionic.

Но это не помогает.

HP:project user$ ionic start --list

Starters for @ionic/angular (--type=angular)

name         | description
--------------------------------------------------------------------------------------
tabs         | A starting project with a simple tabbed interface
sidemenu     | A starting project with a side menu with navigation in the content area
blank        | A blank starter project
list         | A starting project with a list
my-first-app | An example application that builds a camera with gallery
conference   | A kitchen-sink application that shows off all Ionic has to offer


Starters for @ionic/react (--type=react)

name         | description
--------------------------------------------------------------------------------------
blank        | A blank starter project
list         | A starting project with a list
my-first-app | An example application that builds a camera with gallery
sidemenu     | A starting project with a side menu with navigation in the content area
tabs         | A starting project with a simple tabbed interface
conference   | A kitchen-sink application that shows off all Ionic has to offer


Starters for Ionic 2/3 (--type=ionic-angular)

name     | description
----------------------------------------------------------------------------------------------------------------
tabs     | A starting project with a simple tabbed interface
sidemenu | A starting project with a side menu with navigation in the content area
blank    | A blank starter project
super    | A starting project complete with pre-built pages, providers and best practices for Ionic development.
tutorial | A tutorial based project that goes along with the Ionic documentation
aws      | AWS Mobile Hub Starter


Starters for Ionic 1 (--type=ionic1)

name     | description
---------------------------------------------------------------------------------------------
tabs     | A starting project for Ionic using a simple tabbed interface
sidemenu | A starting project for Ionic using a side menu with navigation in the content area
blank    | A blank starter project for Ionic
maps     | An Ionic starter project using Google Maps and a side menu

среда

Установлена ​​ли текущая версия CLI с использованием

npm i -g @ionic/cli

1 Ответ

0 голосов
/ 19 марта 2020
For some reason, making the command all together like this: 
Ionic start myProject tabs --type=angular (which is ionic 4),  doesn't work, it show some errors like this: [ERROR] Network connectivity error occurred, are you offline? which is already been reported to the ionic team yesterday https://github.com/ionic-team/ionic/issues/20795, 
...