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

Cannot find module 'wrappy' running mobilespec for Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • cordova-lib
    • Android on Windows

    Description

      Build failed: https://ci.apache.org/builders/cordova-android-win/builds/828.
      Output: https://ci.apache.org/builders/cordova-android-win/builds/828/steps/creating-mobilespec-app/logs/stdio.

      Snippet:

      Creating project from local git repos. If you have any errors, it may be from missing repositories.
      To clone repositories:
        ./cordova-coho/coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins
        mkdir cordova-cli/node_modules
        (cd cordova-lib/cordova-lib/ && npm install)
        (cd cordova-plugman/ && npm install)
        mkdir cordova-cli/node_modules
        ln -s ../../cordova-lib/cordova-lib cordova-cli/node_modules
        (cd cordova-cli && npm install)
      To update all repositories:
        ./cordova-coho/coho repo-update
      Creating project mobilespec...
      Creating a new cordova project.
      Adding platforms...
      Adding Platform: android
      platformArg: C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-android
      Executing "before_platform_add"  hook for all plugins.
      Adding android project...
      Failed to require PlatformApi instance for platform "android". Using polyfill instead.
      Running command: cmd "/s /c "C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-android\bin\create.bat C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec\platforms\android org.apache.mobilespec mobilespec --cli""
      module.js:338
          throw err;
                ^
      Error: Cannot find module 'wrappy'
          at Function.Module._resolveFilename (module.js:336:15)
          at Function.Module._load (module.js:278:25)
          at Module.require (module.js:365:17)
          at require (module.js:384:17)
          at Object.<anonymous> (C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-android\node_modules\cordova-common\node_modules\glob\node_modules\inflight\inflight.js:1:76)
          at Module._compile (module.js:460:26)
          at Object.Module._extensions..js (module.js:478:10)
          at Module.load (module.js:355:32)
          at Function.Module._load (module.js:310:12)
          at Module.require (module.js:365:17)
      Command finished with error code 1: cmd /s /c "C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-android\bin\create.bat C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec\platforms\android org.apache.mobilespec mobilespec --cli"
      Error: cmd: Command failed with exit code 1
          at ChildProcess.whenDone (C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-lib\cordova-common\src\superspawn.js:139:23)
          at ChildProcess.emit (events.js:110:17)
          at maybeClose (child_process.js:1008:16)
          at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
      

      Attachments

        Activity

          People

            stevegill Steve Gill
            dblotsky Dmitry Blotsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified