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

cordova plugin add failing "no such file or directory file:tools"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova@7.0.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
    • Environment:

      OSX 10.12.5
      alex@alex ~/P/e/tracking> cordova -v
      7.1.0

      Description

      After plugins correctly installing for weeks, adding new plugins is suddenly failing with the following:

      alex@alex ~/P/e/tracking> cordova plugin add cordova-plugin-firebase
      Error: Failed to fetch plugin cordova-plugin-firebase 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 254 Error output:
      npm WARN com.sidigital.tracking@1.0.2 No repository field.
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: cordova-serve@file:file:tools/cordova-serve-2.0.0.tgz (node_modules/cordova-browser/node_modules/cordova-serve):
      npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, stat '/Users/alex/Projects/experiments/tracking/file:tools/cordova-serve-2.0.0.tgz'
      
      npm ERR! path /Users/alex/Projects/experiments/tracking/file:cordova-dist/tools/cordova-common-2.1.1.tgz
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall stat
      npm ERR! enoent ENOENT: no such file or directory, stat '/Users/alex/Projects/experiments/tracking/file:cordova-dist/tools/cordova-common-2.1.1.tgz'
      npm ERR! enoent This is related to npm not being able to find a file.
      npm ERR! enoent 
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /Users/alex/.npm/_logs/2017-11-30T15_01_20_854Z-debug.log
      

      It keeps trying to find /file:tools/ inside the root of my project. It doesn't matter which plugin I try to install

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Tit5n Alex
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: