Cannot initialize a Ionic React App

I used ionic start, choose React as the framework, and type the app name as test.
I get error saying
> capacitor init test io.ionic.starter --web-dir build --npm-client npm error: unknown option '--npm-client' [ERROR] An error occurred while running subprocess capacitor. capacitor init test io.ionic.starter --web-dir build --npm-client npm exited with exit code 1.

And when I try to run the app, it does not work.