0 Replies Latest reply on Sep 17, 2017 10:30 AM by rashada31924446

    Adding file plugin to PhoneGap project error

    rashada31924446

      I'm trying to add "file" plugin to my PhoneGap project, but it's returns errors:

       

      d:\Android\projects\myProject>phonegap plugin add cordova-plugin-file
      Error: Failed to fetch plugin git+https://github.com/apache/cordova-plugin-file.git via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Error: cmd: Command failed with exit code 1 Error output:
      npm WARN cordova-plugin-camera@2.1.1 requires a peer of cordova-plugin-file@>=2.0.0 but none was installed.
      npm WARN cordova-plugin-file-transfer@1.5.1 requires a peer of cordova-plugin-file@^3.0.0 but none was installed.
      npm WARN cordova-plugin-media-capture@1.2.0 requires a peer of cordova-plugin-file@^3.0.0 but none was installed.
      npm WARN com.phonegap.helloworld@1.0.0 No repository field.
      npm WARN com.phonegap.helloworld@1.0.0 No license field.
      npm ERR! code 1
      

       

      What is the right way of adding "file" plugin to PhoneGap project?

      p.s: I'm on Windows cmd, version of Phonegap - 7.0.1