Can't add platform to multi app project

Hello,

I followed the instructions here: Angular Monorepo · ionic-team/ionic-cli Wiki · GitHub to set up a multi app project. Next, I tried to add the iOS platform using the following command:

ionic capacitor add ios

and I receive the following error:

> ionic integrations enable capacitor
> npm i --save -E @capacitor/core@latest

up to date, audited 1001 packages in 2s

107 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
> npm i -D -E @capacitor/cli@latest

up to date, audited 1001 packages in 2s

107 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
> npm i --save -E @capacitor/haptics @capacitor/app @capacitor/keyboard @capacitor/status-bar

up to date, audited 1001 packages in 2s

107 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
> capacitor init mobile io.ionic.starter --web-dir www
[ERROR] Command not found: capacitor

It seems it can’t find capacitor even though it’s installed as a dev dependency. Any help is appreciated!