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

adding platform wp8 creates Cannot find module 'Q' from create.js:20:13

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 14.04

      Description

      there is line

      var Q = require('Q'),
      (should be var Q = require('q') ?)
      in create.js, which breaks following command:

      $ cordova platform add wp8
      WARNING: Applications for platform wp8 can not be built on this OS - linux.
      npm http GET https://registry.npmjs.org/cordova-wp8
      npm http 304 https://registry.npmjs.org/cordova-wp8
      Adding wp8 project...

      module.js:340
      throw err;
      ^
      Error: Cannot find module 'Q'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.<anonymous> (/home/sander/.cordova/lib/npm_cache/cordova-wp8/3.8.1/package/bin/lib/create.js:20:13)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      Error: /home/sander/.cordova/lib/npm_cache/cordova-wp8/3.8.1/package/bin/create: Command failed with exit code 8
      at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
      at ChildProcess.EventEmitter.emit (events.js:98:17)
      at maybeClose (child_process.js:743:16)
      at Process.ChildProcess._handle.onexit (child_process.js:810:5)

        Attachments

          Activity

            People

            • Assignee:
              purplecabbage Jesse MacFadyen
              Reporter:
              sandermets Sander Mets
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: