Questions tagged [ionic-cli]

Questions related to using the ionic command line interface to interact with ionic framework

ionic-cli is the CLI that helps interact with Ionic framework, such as, creating projects, build projects into specific platforms, adding PhoneGap/Cordova plugins...

Visit its homepage for more information, http://ionicframework.com/docs/cli/

118 questions
1
vote
2 answers

Ionic v4: "Ionic cordova run -l" won't start my app

Additional notes for upcoming viewers This seems to be a common problem on macOS: https://github.com/ios-control/ios-sim/issues/253 Temporary solution below this question. I've worked on a fresh ionic project a few days ago and I had no problems…
user5616242
1
vote
0 answers

Ionic 4 : why page generate command creates module file and there is no cli command for generate only modules for better Structure of project

Ionic 4 : why every page generate command creates module file and there is no cli command for generate only modules for better abstraction. I know the difference between modules and components. modules used for lazy loading so it can load only…
paras shah
  • 861
  • 2
  • 9
  • 23
1
vote
1 answer

How can I add new page in a sub folder using Ionic Cli

I want to add a new page to an existing project under a specific folder. e.g: I want to add student-entry-form under pages/forms ionic g page forms/student-entry-form I used the above command but it created forms-student-entry-form under pages. Is…
mulla.azzi
  • 2,676
  • 4
  • 18
  • 25
1
vote
1 answer

How to add pages to app.module.ts in Ionic using CLI

I am new to Ionic and when generating the pages in Ionic, we have to manually add the pages to the app.module.ts. Is there any way to add pages to app.module.ts using CLI in Ionic? I am trying this: ionic g page --module=app Any answers…
1
vote
1 answer

Ionic CLI V4 Looks like @ionic/v1-toolkit isn't installed in this project

After updating Ionic CLI to 4, every command I try to run does not working. For example: Ionic serve, ionic cordova build android ionic cordova run android ionic cordova build ios ... I receive such errors: Looks like @ionic/v1-toolkit isn't…
Raz Buchnik
  • 7,753
  • 14
  • 53
  • 96
1
vote
1 answer

an error occurred while running npm i (exit code 1) while trying to install project dependencies

I just clone an Ionic project to my pc, as .gitignore was used there was no node_modules installed in the directive ...So when I typed in ionic serve in the CLI it was giving this error ? Looks like a fresh checkout! No ./node_modules directory…
1
vote
9 answers

Ionic 3 ionic serve command terminate itself

I'm having an error with the ionic serve command.I can serve application via npm run ionic:serve.I searched things about this and also adding output of ionic serve --verbose.Please help to get out from this. ionic info output is this: cli packages:…
Aneri Vala
  • 528
  • 3
  • 11
1
vote
1 answer

How to serve mock files from ionic-lab and how to set ionic config json

I've been using Angular for a while, but I'm new to Ionic. Recently, I started a project. I added a folder named mocks which holds some mock json files. I want to be able to retrieve these files from http://localhost:8100/mocks/my-mock-data.json…
Bunyamin Coskuner
  • 8,719
  • 1
  • 28
  • 48
1
vote
20 answers

Ionic serve not working in Ionic 3

My Ionic info: cli packages: (/usr/lib/node_modules) @ionic/cli-utils : 1.9.2 ionic (Ionic CLI) : 3.9.2 global packages: Cordova CLI : 7.0.1 local packages: @ionic/app-scripts : 3.1.0 Cordova Platforms : browser 4.1.0 Ionic Framework :…
Mebin Xtapps
  • 51
  • 1
  • 1
  • 8
1
vote
2 answers

ionic-cli - Error: unable to get local issuer certificate

I'm using the ionic-cli v3.9.2 to create a project like this: ionic start cutePuppyPics But I'm getting the following error: ? What starter would you like to use: tutorial [INFO] Fetching app base (https://github.com/ionic-team/ionic2-app- …
1
vote
1 answer

Create an ionic 2 project with ionic 3 cli

How do you create ionic projects with different versions of ionic? I am able to create an Ionic 1 project by using --type=ionic1 flag in ionic-cli as mentioned here. But how do we create an Ionic 2 project with ionic-cli 3? --type=ionic2 doesn't…
Khusbu Mishra
  • 161
  • 4
  • 13
1
vote
1 answer

Ionic CLI: [ERROR] Gulpfile (or dependent module) not found: .\gulpfile.js

Senario I recently upon running an Ionic 3 app, updated (well accidentally) the Ionic CLI version. Now upon running the build from command line, it produces the following error every time and halts the build: In the error message it says to disable…
Ahmad Baktash Hayeri
  • 5,802
  • 4
  • 30
  • 43
1
vote
1 answer

‘ionic serve’ is failing without an error

After resetting git head one commit back and confirming ionic updates, ionic serve is exiting on 'build dev started...' with NO error :/ I have tried removing package.lock.json and node_modules folder from project end installing again with npm…
Luckylooke
  • 4,061
  • 4
  • 36
  • 49
1
vote
2 answers

Export Ionic project from Ionic Creator using Ionic CLI option

I am new to Ionic framework . Actally I have seen this option of ionic CLI for exporting the project from ionic creator in below video Ionic Creator Tutorials But I can not see this option in my project in both the version of ionic latest and…
user3432164
1
vote
1 answer

Xcode - (ionic app) - build AND archive?

This is probably a dumb question... I just want to make sure I am not doubling up here. Once I am done with my ionic code, I run ionic build --release from the command line. Then, in Xcode I run clean, then build, then archive. Question - if I am…
Kinglish
  • 23,358
  • 3
  • 22
  • 43