Ionic-cli: Warning with Cordova 6.1

Created on 24 Mar 2016  Â·  16Comments  Â·  Source: ionic-team/ionic-cli

Cordova-cli 6.1 was released yesterday and causes warnings to appear in the CLI

ionic info
WARN: ionic.config.js has been deprecated, you can remove it.

Your system information:

Cordova CLI: 6.1.0 (cordova-lib@undefined)
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 2.0.0-beta.22
Ionic App Lib Version: 2.0.0-beta.12
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.9.0
Xcode version: Xcode 7.3 Build version 7D175


******************************************************
 Dependency warning - for the CLI to run correctly,
 it is highly suggested to install/upgrade the following:

 Please install your Cordova CLI to version  >=4.2.0 `npm install -g cordova`

******************************************************

Most helpful comment

You can disable telemetry to solve this issue:

$ cordova telemetry on
$ cordova telemetry off
$ cordova build --no-telemetry

And now:

$ cordova -v
6.2.0

The problem is fixed:

$ ionic info

Your system information:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
OS: Windows 7 SP1
Node Version: v5.3.0

Source:
You have been opted out of telemetry, what?
https://medium.com/@appplumbr/you-are-encountering-this-issue-as-apache-cordova-in-their-latest-release-added-telemetry-to-d03732719dc1#.ur2bhalx0

All 16 comments

Yeah, same here. CLI throws a warning even if cordova 6.1.0 is already installed.
screen shot 2016-03-25 at 11 33 57

@mhartington @nunoarruda You've probably already done this but I found that downgrading fixed the issue for me...

npm remove -g cordova

npm install -g [email protected]

I was unable to add crosswalk before doing this.

me also facing the same issue sir @richmoh by removing cordova and installing with cordova 6.0.x is it fix the issue ?

Yes

On Mon, 28 Mar 2016, 11:47 anupam42, [email protected] wrote:

me also facing the same issue sir @richmoh https://github.com/richmoh
by removing cordova and installing with cordova 6.0.x is it fix the issue ?

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/driftyco/ionic-cli/issues/859#issuecomment-202339287

Same issue here. T-T"

While downgrading cordova to 6.0.0, an npm warning came up:

npm WARN deprecated [email protected]: this package has been reintegrated into npm and now out of date with respect to npm.

i had a look into it, seems like "cordova -v", which is being called to gather the needed info, is not returning "6.1.0" as expected. it's "6.1.0 (cordova-lib@undefined)".

semvar.satisfies() now cant validate that in a correct manner and is returning false, which is obviously wrong. ;)

For the ppl having troubles installing i.e. crosswalk:
As far as i know, since cordova cli 5.0 "ionic browser add crosswalk" is not needed in order to install crosswalk. For a temporary workaround you could also execute these commands:

cordova platform add android
cordova plugin add cordova-plugin-crosswalk-webview
cordova plugin add cordova-plugin-whitelist
cordova plugin add cordova-plugin-splashscreen

Please correct me if I'm wrong, but this is basically the same as the "ionic browser add crosswalk" command does in the script if cordova cli is >=5.0.0

This looks fixed now with the latest version(s)...
screen shot 2016-04-03 at 19 00 31

yes, this seems to be fixed with 6.1.1.

Hello all! As this seems to have been fixed in cordova 6.1.1 i will be closing this issue for now. Thanks for using Ionic!

Hi, I'm facing the same issue but with the last cordova version 6.2 on Windows. Version 6.1.1 is OK

image

You can disable telemetry to solve this issue:

$ cordova telemetry on
$ cordova telemetry off
$ cordova build --no-telemetry

And now:

$ cordova -v
6.2.0

The problem is fixed:

$ ionic info

Your system information:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
OS: Windows 7 SP1
Node Version: v5.3.0

Source:
You have been opted out of telemetry, what?
https://medium.com/@appplumbr/you-are-encountering-this-issue-as-apache-cordova-in-their-latest-release-added-telemetry-to-d03732719dc1#.ur2bhalx0

Same here today with fresh install of cordova 6.3.1 and ionic 2.1.0 when start new project on Windows..

Surely is not a good idea to guess versions by parsing the program's version info? Imagine other programs did that with ionic which outputs ASCII art..

Anyway presumably there isn't actually an issue apart from the warning?

Hi guys, this problem persists on cordova 6.4.0 and Ionic Framework 2.0.0
Ionic CLI 2.1. on windows Node 6.7.0. Is there any possible workaround?

@mhartington I am curious if you guys have any plans towards Officially dockerizing
toolchain [not necessarily free :) ].

Had the same issue.

Your system information:

Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.8
Node Version: v7.2.0
Xcode version: Not installed

Tried the commands suggested by @merolhack and it worked.
Maybe this helps to solve.
Thank you.

Same problem with cordova 6.4 ......

Cordova when first installed asks for permission to send anonymous statistics. This question is causing the warning. Follow @merolhack's comment above.

Was this page helpful?
0 / 5 - 0 ratings