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

Cordova on windows fails when adding plugin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-windows
    • Labels:
      None

      Description

      cordova on windows fails to add the plugin.
      This error happens even when cordova-plugin-whitelist.
      Therefore `cordova platform add windows` also fails.

      For example,

      ```
      > cordova create sample
      > cd sample
      > cordova platform add windows
      ```

      brings following error.

      ```
      ...
      Check your connection and plugin name/version/URL.
      Error: C:\Program Files (x86)\Nodist\bin\npm.exe: Command failed with exit code 1 Error output:
      npm ERR! code EINVALIDTAGNAME
      npm ERR! Invalid tag name ""1"": Tags may not have any characters that encodeURIComponent encodes.
      ```

      This error happens for windows environment only.

        Attachments

        1. スクリーンショット 2018-09-06 11.36.42.png
          47 kB
          Ken Naito
        2. screenshot-1.png
          18 kB
          Jan Piotrowski (janpio)

          Activity

            People

            • Assignee:
              purplecabbage Jesse MacFadyen
              Reporter:
              takuya takuya
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m