title: Could not resolve dependency: peer cordova-plugin-file
body: <p>i have tried to make an application with cordova, and found an error like this, i tried various ways still the error</p>
  <p>this is the error:</p>
  <h1>npm resolution error report</h1>
  <p>2022-02-08T08:15:54.445Z</p>
  <p>While resolving: com.xx.xx@1.0.0
  Found: cordova-plugin-file@4.3.3
  node_modules/cordova-plugin-file
  dev cordova-plugin-file@&quot;4.3.3&quot; from the root project</p>
  <p>Could not resolve dependency:
  peer cordova-plugin-file@&quot;^3.0.0&quot; from cordova-plugin-file-transfer@1.5.1
  node_modules/cordova-plugin-file-transfer
  dev cordova-plugin-file-transfer@&quot;1.5.1&quot; from the root project</p>
  <p>Fix the upstream dependency conflict, or retry
  this command with --force, or --legacy-peer-deps
  to accept an incorrect (and potentially broken) dependency resolution.</p>
  <p>Raw JSON explanation object:</p>
  <pre><code>{
    &quot;code&quot;: &quot;ERESOLVE&quot;,
    &quot;current&quot;: {
      &quot;name&quot;: &quot;cordova-plugin-file&quot;,
      &quot;version&quot;: &quot;4.3.3&quot;,
      &quot;whileInstalling&quot;: {
        &quot;name&quot;: &quot;com.xxx.safeXXX&quot;,
        &quot;version&quot;: &quot;1.0.0&quot;,
        &quot;path&quot;: &quot;D:\\Alpha\\SWW-Debug\\app-debug1\\safeXXX&quot;
      },
      &quot;location&quot;: &quot;node_modules/cordova-plugin-file&quot;,
      &quot;isWorkspace&quot;: false,
      &quot;dependents&quot;: [
        {
          &quot;type&quot;: &quot;dev&quot;,
          &quot;name&quot;: &quot;cordova-plugin-file&quot;,
          &quot;spec&quot;: &quot;4.3.3&quot;,
          &quot;from&quot;: {
            &quot;location&quot;: &quot;D:\\Alpha\\SWW-Debug\\app-debug1\\safeXXX&quot;
          }
        }
      ]
    },
    &quot;currentEdge&quot;: {
      &quot;type&quot;: &quot;dev&quot;,
      &quot;name&quot;: &quot;cordova-plugin-file&quot;,
      &quot;spec&quot;: &quot;4.3.3&quot;,
      &quot;from&quot;: {
        &quot;location&quot;: &quot;D:\\Alpha\\SWW-Debug\\app-debug1\\safeXXX&quot;
      }
    },
    &quot;edge&quot;: {
      &quot;type&quot;: &quot;peer&quot;,
      &quot;name&quot;: &quot;cordova-plugin-file&quot;,
      &quot;spec&quot;: &quot;^3.0.0&quot;,
      &quot;error&quot;: &quot;INVALID&quot;,
      &quot;from&quot;: {
        &quot;name&quot;: &quot;cordova-plugin-file-transfer&quot;,
        &quot;version&quot;: &quot;1.5.1&quot;,
        &quot;whileInstalling&quot;: {
          &quot;name&quot;: &quot;com.xxx.safeXXX&quot;,
          &quot;version&quot;: &quot;1.0.0&quot;,
          &quot;path&quot;: &quot;D:\\Alpha\\SWW-Debug\\app-debug1\\safeXXX&quot;
        },
        &quot;location&quot;: &quot;node_modules/cordova-plugin-file-transfer&quot;,
        &quot;isWorkspace&quot;: false,
        &quot;dependents&quot;: [
          {
            &quot;type&quot;: &quot;dev&quot;,
            &quot;name&quot;: &quot;cordova-plugin-file-transfer&quot;,
            &quot;spec&quot;: &quot;1.5.1&quot;,
            &quot;from&quot;: {
              &quot;location&quot;: &quot;D:\\Alpha\\SWW-Debug\\app-debug1\\safeXXX&quot;
            }
          }
        ]
      }
    },
    &quot;strictPeerDeps&quot;: false,
    &quot;force&quot;: false
  }
  </code></pre>
  <p>my specifications:</p>
  <ul>
  <li>gradle Version 7.3.3</li>
  <li>cordova Version 11.0.0</li>
  <li>npm version 8.4.1</li>
  <li>java version &quot;1.8.0_321&quot;</li>
  <li>Java(TM)  SE Runtime Environment (build
  1.8.0_321-b07)</li>
  <li>Java HotSpot(TM)  64-Bit Server VM (build 25.321-b07, mixed mode)</li>
  </ul>