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

cordova-fetch nightly breaks with --link

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-fetch
    • Labels:
      None

      Description

      A coworker just ran this:

      npx cordova platform add --link ../cordova-ios/

      It failed with this error:

      Warning: using prerelease version 8.0.1-nightly.2018.6.26.77b7324f (cordova-lib@8.0.1-nightly.2018.6.26.da4b4b37)
      { CordovaError: Could not determine package name from output:
      up to date in 6.878s
      [!] 3 vulnerabilities found [2885 packages audited]
       Severity: 3 low
       Run `npm audit` for more detail/usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios
      /Projects/launch-cordova-test/node_modules/cordova-ios -> /usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios
       at getTargetPackageSpecFromNpmInstallOutput (/Projects/launch-cordova-test/node_modules/cordova-fetch/index.js:97:15)
       at _fulfilled (/Projects/launch-cordova-test/node_modules/q/q.js:854:54)
       at /Projects/launch-cordova-test/node_modules/q/q.js:883:30
       at Promise.promise.promiseDispatch (/Projects/launch-cordova-test/node_modules/q/q.js:816:13)
       at /Projects/launch-cordova-test/node_modules/q/q.js:624:44
       at runSingle (/Projects/launch-cordova-test/node_modules/q/q.js:137:13)
       at flush (/Projects/launch-cordova-test/node_modules/q/q.js:125:13)
       at process._tickCallback (internal/process/next_tick.js:172:11)
       name: 'CordovaError',
       message: 'Could not determine package name from output:\nup to date in 6.878s\n[!] 3 vulnerabilities found [2885 packages audited]\n Severity: 3 low\n Run `npm audit` for more detail\n\n/usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios\n/Projects/launch-cordova-test/node_modules/cordova-ios -> /usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios',
       code: 0,
       context: undefined }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raphinesse Raphael
                Reporter:
                dpogue Darryl Pogue
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: