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

Error: Cannot find module 'Q'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: cordova-ios
    • Labels:
      None
    • Environment:

      Mac OSX Yosemite 10.10.1

      Description

      After upgrading Cordova-CLI to the last version (4.3.0), when i run: "cordova build" i get the following error:

      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> (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25: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 building one of the platforms: Error: /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build: Command failed with exit code 8
      You may not have the required environment or OS to build this project
      Error: /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build: Command failed with exit code 8
      at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
      at ChildProcess.EventEmitter.emit (events.js:98:17)
      at maybeClose (child_process.js:753:16)
      at Process.ChildProcess._handle.onexit (child_process.js:820:5)

        Attachments

        1. CB-8621.patch
          0.7 kB
          Marco

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marko85to Marco
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: