Ionic generate service It doesn't work

PS D:\proyecto\---\appcliente\---> ionic info
√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)  : 4.1.1 (C:\Users\-------\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : not available
   Cordova Plugins       : not available

System:

   NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm    : 5.10.0
   OS     : Windows 10

it is error

> ionic generate service services/user/auth
[ERROR] type must be one of: component, directive, page, pipe, provider, tabs (not service)
Use the --help flag for more details.

Ionic framework is the old version, this is how my V4 installation looks like

Ionic:

ionic (Ionic CLI) : 4.1.1 (C:\Users-—\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.3
@angular-devkit/core : 0.7.3
@angular-devkit/schematics : 0.7.3
@angular/cli : 6.1.4
@ionic/ng-toolkit : 1.0.6
@ionic/schematics-angular : 1.0.4

Capacitor:

capacitor (Capacitor CLI) : 1.0.0-beta.6
@capacitor/core : 1.0.0-beta.6

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : none
Cordova Plugins : no whitelisted plugins (0 plugins total)

System:

Android SDK Tools : 26.1.1 (D:\Documents\Android\Sdk)
NodeJS : v10.8.0 (C:\Program Files\nodejs\node.exe)
npm : 6.2.0
OS : Windows 10

how do i update it …

How did you create your project ?

Don’t let @developergeme confuse you @amakakeru, you are totally fine with Ionic-Angular 3.9.2.

You should install Cordova CLI with npm install -g cordova though.

Also the command ionic generate service services/user/auth you are using does not exist. See the documentation at https://ionicframework.com/docs/cli/generate/ for how the command actually works.

You are right, I was using V4 to build a V3 project, and that failed, so I assumed it was not backwards compatible, but it was just that specific beta version, that had the bug

solution, ionic start myApp sidemenu --type=angular, 66/5000

to install version 4 you have to specify with - type == angular