[
https://issues.apache.org/jira/browse/CB-12340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864789#comment-15864789
]
Shazron Abdullah edited comment on CB-12340 at 2/14/17 12:56 AM:
-----------------------------------------------------------------
Unfortunately this is because the hook used by the plugin uses urijs. Somewhere
down the line, this dependency was removed in the CLI, thus the hook is
failing. I have a work-in-progress hook that tries to run `npm install` for the
plugin first to satisfy the dependency requirement. Either that or I have to
implement the functionality in urijs I need. No eta
was (Author: shazron):
Unfortunately this is because the hook used by the plugin uses urijs. Somewhere
down the line, this dependency was removed, thus the hook is failing. I have a
work-in-progress hook that tries to run `npm install` for the plugin first to
satisfy the dependency requirement. Either that or I have to implement the
functionality in urijs I need. No eta
> 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.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]