Ionic-capacitor v3.1.2 unknown option ‘–npm-client’

I get the error message error: unknown option ‘–npm-client’
when I try to run the following command ionic capacitor run ios.
I think that I use the latest version of Ionic
Can you help me here. Thanks a lot
My versions:

Ionic CLI : 6.13.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.12
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.1.4
@angular/cli : 12.1.4
@ionic/angular-toolkit : 2.3.3


Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : not available


cordova-res (update available: 0.15.3) : 0.10.0
native-run : 1.4.0


NodeJS : v15.2.1 (/usr/local/Cellar/node/15.2.1/bin/node)
npm : 7.20.3

just update @ionic/cli to the latest version available (6.17.0 at the moment)

Although I don’t want to get in the way of @jcesarmobile’s excellent advice, I think it’s worth mentioning again that if you don’t want to be constantly running the risk of banging into incompatibilities, always stick to using LTS node versions.

Yeah, that’s a good advice too, I’m using version 15 and a lot of commands “yell” at me for using an uneven version.

In this case the problem is that capacitor 3 removed the -npm-client param and old versions of ionic/cli passed it, so need to update the CLI version so it doesn’t pass the param anymore