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
0
votes
1 answer

How to get param from ionic cli to local project

I have a command: ionic build android In my opinion, when entered, it'll run file build.js from ionic cli in my OS to my local project. But I didn't see any platform param in local project. So my question here is, how to get param android from…
0
votes
2 answers

Cordova/Ionic2 project created from GIT repo

I developed a ionic2 application, I pushed it to a private git repo accessible by our team. When another colleague is downloading this project, he is not able to use the ionic/cordova commands. (he has ionic/cordova installed globally so it's not…
Alex
  • 166
  • 8
0
votes
1 answer

Upload to Ionic Cloud with specific credentials

I have 2 different accounts in Ionic Cloud, one is personal and the other is the professional one. I've logged out from both of them and then I want to create a new app_id in my professional account. So I run $ionic io init to generate the account,…
David
  • 3,364
  • 10
  • 41
  • 84
0
votes
1 answer

Where to put Sub-Page components in Ionic2

I used Ionic CLI to create my first Ionic app and the pages and navigation work great, but now I want to add a sub-component to one of my pages. I added a folder under the page, created the component, and added it to my declarations and…
Nate May
  • 3,814
  • 7
  • 33
  • 86
0
votes
1 answer

Ionic 2 serve error on code change - UnhandledPromiseRejectionWarning

I am running an app with Ionic CLI 2.1.17. When i do ionic server --lab for the first time, the app builds and works, but whenever i change some code, the CLI tries to rebuild on the fly but always throws the following error. [12:17:51] build…
Romain Bruckert
  • 2,546
  • 31
  • 50
0
votes
0 answers

ionic serve building ionic2 project as ionic1 project

I have Ionic2 project it run and built ok with ionic serve. but after some time it build project as it is in Ionic1 project this output Running live reload server: http://localhost:35729 Watching: www/**/*, !www/lib/**/*, !www/**/*.map √ Running…
Amr Ibrahim
  • 2,066
  • 2
  • 23
  • 47
0
votes
2 answers

Cant run multiple projects with ionic serve

Im working with ionic2. Below is all the info produced by ionic info. Im basically working on two different ionic projects and I would like to serve both of them at the same time. One project is loaded on port 8000 by default when doing ionic serve.…
Victor Ramos
  • 175
  • 3
  • 11
0
votes
2 answers

Ionic CLI version 2.1.4 fails to generate page ionic 2

The ionic g page test fails to generate page and gives me the following error: ionic g page test Error: ENOENT: no such file or directory, scandir '...\node_modules\ionic-angular\templates\page' at Error (native) at Object.fs.readdirSync…
0
votes
6 answers

Cannot update Ionic-CLI

I'm having an issue updating to the latest version of Ionic. I became aware of the issue when I tried to run the command ionic g provider Tabs and got g is not a valid task in response. I have three versions of NodeJS installed, that I switch…
Joshua Swiss
  • 195
  • 1
  • 5
  • 17
0
votes
1 answer

When using alternate browsers for an Ionic/Cordova Application, does the app take any dependencies?

This is probably a silly question, but I couldn't find in the documentation. I need to use the Crosswalk browser for my Ionic/Cordova application. Basically, will my application depend on Chrome or anything else on the Android device for it to…
Rodrigo Lira
  • 1,489
  • 3
  • 14
  • 28
-1
votes
1 answer

This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0, [ng] but Angular version 14.0.4 was found instead

I did update my ionic project to Angular 14. Tested all and everything was working when I used ionic s. I wanted to test on my android device and ran ionic cordova run android but got the following error [ng] This version of CLI is only compatible…
Raphaël Balet
  • 6,334
  • 6
  • 41
  • 78
-1
votes
2 answers

Build fails with ionic cap run android -l –external

After updating to latest @ionic/cli version I started receiving this error, after I try to do this command : ionic cap run android -l --external FAILURE: Build failed with an exception. [capacitor] [capacitor] * Where: [capacitor] …
-1
votes
4 answers

How to hash a file with sha256 in Ionic 4 app based on Angular 7?

I am trying to hash a file more than 1GB using SHA256 in an Ionic 4 app based on Angular 7. I want to use this NPM module. But there is no documentation. How and where to import this module? or suggest a better alternative. Following error I am…
1 2 3 4 5 6 7
8