title: Not able to integrate ionic with capacitor , npm throws error
body: <p>I have a blank ionic project , I am trying to integrate with capacitor with ionic to build android app.</p>
  <p>I run this command . <code>ionic capacitor add android</code> this throwing npm error please help me out to resolve this</p>
  <blockquote>
  <p>C:\Users\i\Rabi\learn\ilearn&gt;ionic capacitor add android</p>
  <blockquote>
  <p>ionic integrations enable capacitor
  npm.cmd i --save -E @capacitor/core npm WARN @ionic/angular-toolkit@4.0.0 requires a peer of
  @angular-devkit/architect@^0.1200.0 but none is installed. You must
  install peer dependencies yourself. npm WARN ajv-keywords@3.5.2
  requires a peer of ajv@^6.9.1 but none is installed. You must install
  peer dependencies yourself. npm WARN The package @angular/compiler is
  included as both a dev and production dependency. npm WARN optional
  SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
  fsevents@2.3.2: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current:
  {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;}) npm WARN optional SKIPPING OPTIONAL
  DEPENDENCY: fsevents@1.2.13
  (node_modules\webpack-dev-server\node_modules\fsevents): npm WARN
  notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
  fsevents@1.2.13: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current:
  {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})</p>
  </blockquote>
  <ul>
  <li>@capacitor/core@3.1.2 updated 1 package and audited 1639 packages in 20.453s</li>
  </ul>
  <p>130 packages are looking for funding   run <code>npm fund</code> for details</p>
  <p>found 3 moderate severity vulnerabilities   run <code>npm audit fix</code> to fix
  them, or <code>npm audit</code> for details</p>
  <blockquote>
  <p>npm.cmd i -D -E @capacitor/cli npm WARN @ionic/angular-toolkit@4.0.0 requires a peer of @angular-devkit/architect@^0.1200.0 but none is
  installed. You must install peer dependencies yourself. npm WARN
  ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is
  installed. You must install peer dependencies yourself. npm WARN The
  package @angular/compiler is included as both a dev and production
  dependency. npm WARN optional SKIPPING OPTIONAL DEPENDENCY:
  fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING
  OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted
  {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13
  (node_modules\webpack-dev-server\node_modules\fsevents): npm WARN
  notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
  fsevents@1.2.13: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current:
  {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})</p>
  </blockquote>
  <ul>
  <li>@capacitor/cli@3.1.2 updated 1 package and audited 1639 packages in 17.196s</li>
  </ul>
  <p>129 packages are looking for funding   run <code>npm fund</code> for details</p>
  <p>found 3 moderate severity vulnerabilities   run <code>npm audit fix</code> to fix
  them, or <code>npm audit</code> for details</p>
  <blockquote>
  <p>capacitor.cmd init ilearn io.ionic.starter --npm-client npm error: unknown option '--npm-client' [ERROR] An error occurred while running
  subprocess capacitor.</p>
  </blockquote>
  <pre><code>    capacitor.cmd init ilearn io.ionic.starter --npm-client npm exited with exit code 1.
  
      Re-running this command with the --verbose flag may provide more information.
  </code></pre>
  </blockquote>
  <p>I tried npm audit fix but no success</p>