Error: Current working directory is not a Cordova-based project

Hi,

The ionic command and cordova fail, but if i use just cordova is ok. why ?

That is indeed strange.
Can you add --verbose --debug to both commands and run them again?
What is your ionic info output?

hi, equal

What is your ionic info output?
What do you get on ionic cordova platform list?

global packages:

@ionic/cli-plugin-proxy : 1.3.2
@ionic/cli-utils        : 1.5.0
Cordova CLI             : 6.5.0
Ionic CLI               : 3.5.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : android 6.1.2
Ionic Framework                 : ionic-angular 3.5.0

System:

Node       : v6.11.1
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.3.0

PD: equal to with Cordova CLI : 7.0.1

D:\Abbylab\ionic3\app2>ionic cordova platform list

cordova platform ls
× Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova platform ls (exit code 1):

    Error: Current working directory is not a Cordova-based project.

Some googling lead me here: https://github.com/ionic-team/ionic-cli/issues/935#issuecomment-236573448

I already read it and it is not my case

Did you run ionic serve before running the ionic cordova command?

If so, I am out of ideas. You should then probably post an issue at: https://github.com/ionic-team/ionic-cli/issues

The same result with or without ionic server.

Let me see that post, you can confirm. Who makes that possible mistake? (Ionic, ionic cli, cordova, cordova cli, nodejs, npm)

Sorry, what? I don’t understand.

The error is caused by @ ionic / cli-plugin-ionic-angular?

No, the cordova plugin of the CLI - that is run when you execute anything starting with ionic cordova.
But the CLI and its plugins are all in the same repository, so you can use the link I posted.