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

Adding plugin wkwebview-engine-localhost fails: Error: Cannot find module 'urijs'

    XMLWordPrintableJSON

    Details

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

      OS X

      Description

      Although it issues this error, the plugin is listed as installed with the 'plugin list' command.

      Here's the console listing:

      $ cordova plugin add https://github.com/apache/cordova-plugins.git#master:wkwebview-engine-localhost
      support for subdirectories is deprecated and will be removed in Cordova@7
      Fetching plugin "https://github.com/apache/cordova-plugins.git" via git clone
      Repository "https://github.com/apache/cordova-plugins.git" checked out to git ref "master".
      Installing "cordova-labs-wkwebview-engine-localhost" for android
      support for subdirectories is deprecated and will be removed in Cordova@7
      Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugins.git" via git clone
      Repository "https://git-wip-us.apache.org/repos/asf/cordova-plugins.git" checked out to git ref "master".
      Dependent plugin "cordova-labs-local-webserver" already installed on android.
      Fetching plugin "cordova-plugin-wkwebview-engine" via npm
      Installing "cordova-plugin-wkwebview-engine" for android
      ANDROID_HOME=/Users/michael/Library/Android/sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
      Subproject Path: CordovaLib
      Incremental java compilation is an incubating feature.
      :clean
      :CordovaLib:clean

      BUILD SUCCESSFUL

      Total time: 2.108 secs
      ANDROID_HOME=/Users/michael/Library/Android/sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
      Subproject Path: CordovaLib
      Incremental java compilation is an incubating feature.
      :clean
      :CordovaLib:clean

      BUILD SUCCESSFUL

      Total time: 1.142 secs
      Installing "cordova-labs-wkwebview-engine-localhost" for ios
      Installing "cordova-labs-local-webserver" for ios
      Dependent plugin "cordova-plugin-file" already installed on ios.

      If your <content> element did not already point to 'http://localhost[:port]', it will now point to a http://localhost:0 location (randomized port), e.g. <content src="http://localhost:0" />
      WARNING: For localStorage and IndexedDB persistence, you must choose a non-randomized port (between 1 and 49152, to avoid the ephemeral port range 49152 to 65535 on iOS).

      Failed to install 'cordova-labs-local-webserver':Error: Cannot find module 'urijs'
      at Function.Module._resolveFilename (module.js:455:15)
      at Function.Module._load (module.js:403:25)
      at Module.require (module.js:483:17)
      at require (internal/module.js:20:19)
      at Object.<anonymous> (/Users/michael/gr/follow-up-dojo/cordova/plugins/cordova-labs-local-webserver/scripts/after_install.js:27:11)
      at Module._compile (module.js:556:32)
      at Object.Module._extensions..js (module.js:565:10)
      at Module.load (module.js:473:32)
      at tryModuleLoad (module.js:432:12)
      at Function.Module._load (module.js:424:3)
      Failed to install 'cordova-labs-wkwebview-engine-localhost':Error: Cannot find module 'urijs'
      at Function.Module._resolveFilename (module.js:455:15)
      at Function.Module._load (module.js:403:25)
      at Module.require (module.js:483:17)
      at require (internal/module.js:20:19)
      at Object.<anonymous> (/Users/michael/gr/follow-up-dojo/cordova/plugins/cordova-labs-local-webserver/scripts/after_install.js:27:11)
      at Module._compile (module.js:556:32)
      at Object.Module._extensions..js (module.js:565:10)
      at Module.load (module.js:473:32)
      at tryModuleLoad (module.js:432:12)
      at Function.Module._load (module.js:424:3)
      Error: Cannot find module 'urijs'

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              michaelstanford Michael Stanford
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: