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

Cordova fails to fetch plugin from registry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Bug
    • cordova@8.0.0
    • None
    • cordova-plugin-device
    • None
    • OS: Lubuntu V17.10.1

      Package Manager: Yarn

      Framework: Ionic

    Description

      Whenever I try to install the Cordova plugin it spits a bunch of errors into the console. I do have an internet connection when attempting.

      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      (node:10245) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch plugin cordova-plugin-device@^2.0.1 via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Error: npm: Command failed with exit code 1 Error output:
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npmlog@4.1.0 (node_modules/fsevents/node_modules/npmlog):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/npmlog/package.json.3299163832'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gauge@2.7.4 (node_modules/fsevents/node_modules/gauge):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/gauge/package.json.2277920670'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wide-align@1.1.2 (node_modules/fsevents/node_modules/wide-align):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/wide-align/package.json.185717306'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: are-we-there-yet@1.1.4 (node_modules/fsevents/node_modules/are-we-there-yet):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/are-we-there-yet/package.json.2986813460'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules/fsevents/node_modules/util-deprecate):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/util-deprecate/package.json.1950414391'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: uid-number@0.0.6 (node_modules/fsevents/node_modules/uid-number):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/uid-number/package.json.1415768242'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt-pbkdf@1.0.1 (node_modules/fsevents/node_modules/bcrypt-pbkdf):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/bcrypt-pbkdf/package.json.75306378'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tweetnacl@0.14.5 (node_modules/fsevents/node_modules/tweetnacl):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/tweetnacl/package.json.2785130640'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tunnel-agent@0.6.0 (node_modules/fsevents/node_modules/tunnel-agent):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/tunnel-agent/package.json.3581355402'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/fsevents/node_modules/strip-json-comments):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/strip-json-comments/package.json.3309794102'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: string-width@1.0.2 (node_modules/fsevents/node_modules/string-width):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/string-width/package.json.38564239'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-ansi@3.0.1 (node_modules/fsevents/node_modules/strip-ansi):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/strip-ansi/package.json.4053295507'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: stringstream@0.0.5 (node_modules/fsevents/node_modules/stringstream):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/stringstream/package.json.573776496'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules/fsevents/node_modules/signal-exit):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/signal-exit/package.json.3184823076'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules/fsevents/node_modules/set-blocking):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/set-blocking/package.json.3522471394'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.0.1 (node_modules/fsevents/node_modules/safe-buffer):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/safe-buffer/package.json.4095377938'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: punycode@1.4.1 (node_modules/fsevents/node_modules/punycode):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/punycode/package.json.296419176'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rimraf@2.6.1 (node_modules/fsevents/node_modules/rimraf):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/rimraf/package.json.4166338274'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@1.0.7 (node_modules/fsevents/node_modules/process-nextick-args):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/process-nextick-args/package.json.3107698935'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules/fsevents/node_modules/path-is-absolute):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/path-is-absolute/package.json.373273627'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus/package.json.668734471'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.3900617148' -> '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json'
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: nopt@4.0.1 (node_modules/fsevents/node_modules/nopt):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/nopt/package.json.313835886' -> '/home/brandon/Projects/material-tunes/node_modules/fsevents/node_modules/nopt/package.json'
      
      npm ERR! code EBADPLATFORM
      npm ERR! notsup Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm ERR! notsup Valid OS:    darwin
      npm ERR! notsup Valid Arch:  any
      npm ERR! notsup Actual OS:   linux
      npm ERR! notsup Actual Arch: x64
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/brandon/.npm/_logs/2018-04-03T03_09_35_007Z-debug.log
          at /home/brandon/.config/yarn/global/node_modules/cordova-lib/src/plugman/fetch.js:173:37
          at _rejected (/home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
          at /home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:890:30
          at Promise.when (/home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
          at Promise.promise.promiseDispatch (/home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
          at /home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:624:44
          at runSingle (/home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
          at flush (/home/brandon/.config/yarn/global/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
          at _combinedTickCallback (internal/process/next_tick.js:131:7)
          at process._tickCallback (internal/process/next_tick.js:180:9)
      (node:10245) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      (node:10245) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            BrandonCravener Brandon Cravener
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: