You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Stanford (JIRA)" <ji...@apache.org> on 2017/01/10 20:57:58 UTC

[jira] [Created] (CB-12340) Adding plugin wkwebview-engine-localhost fails: Error: Cannot find module 'urijs'

Michael Stanford created CB-12340:
-------------------------------------

             Summary: Adding plugin wkwebview-engine-localhost fails: Error: Cannot find module 'urijs'
                 Key: CB-12340
                 URL: https://issues.apache.org/jira/browse/CB-12340
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin WKWebViewEngine
         Environment: OS X
            Reporter: Michael Stanford
            Assignee: Shazron Abdullah


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'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org