Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10500

cordova restore/prepare CPR plugin fails silently

    XMLWordPrintableJSON

Details

    Description

      add the following line to your config.xml

      <plugin name="com.pushwood.plugins.pushwoosh" spec="~4.1.0" />
      

      do cordova prepare and you will notice get these two lines

      Discovered plugin "com.pushwoosh.plugins.pushwoosh" in config.xml. Installing to the project
      Fetching plugin "com.pushwoosh.plugins.pushwoosh@~4.1.0" via npm
      

      Problem is, that plugin doesn't get installed and doesn't actually get fetched because it doesn't exist on npm. It is failing silently.

      If I add the plugin via `cordova plugin add com.pushwoosh.plugins.pushwoosh@~4.1.0`, I get the error message:

      Error: Failed to fetch plugin com.pushwoosh.plugins.pushwoosh@~4.1.0 via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Error: Registry returned 404 for GET on https://registry.npmjs.org/com.pushwoosh.plugins.pushwoosh

      Seems to me it is a problem with save restore work not catching the error message.

      Attachments

        Issue Links

          Activity

            People

              stevegill Steve Gill
              stevegill Steve Gill
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: