cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9017) CLI Platform Add Support for Non Global NodeJS Path
Date Mon, 13 Jul 2015 23:33:04 GMT

     [ https://issues.apache.org/jira/browse/CB-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-9017:
---------------------------------
    Component/s:     (was: iOS)

> CLI Platform Add Support for Non Global NodeJS Path
> ---------------------------------------------------
>
>                 Key: CB-9017
>                 URL: https://issues.apache.org/jira/browse/CB-9017
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Android, Browser, CLI, CordovaLib
>    Affects Versions: 5.0.1
>         Environment: Command line environments where "node" isn't the PATH of the current
process.
>            Reporter: Ryan Thomas
>            Priority: Minor
>              Labels: cordova-cli, cordova-lib, easyfix, nodejs
>
> Executing the CLI "platform add <platforms>" command using locally installed node
binaries, cordova instances, and so forth will fail when the cli attempts to call through
to the platform specific create.bat file.
> One simple resolution would be to allow the cli to pass the current node execution path
through to the spawned call via an optional command line argument.
> An example implemenation of passing through the node process exec path for the android
platform can be found at the below links:
> [cordova-lib|https://github.com/RhinobyteSoftware/cordova-lib/tree/feature/LocalNodePath]
> [cordova-android|https://github.com/RhinobyteSoftware/cordova-android/tree/feature/LocalNodePath]
> The example implementation upates the platform.js/getCreateArgs function in the cordova-lib
component to pass through the extra argument for the process.execPath. The cordova-android
update modifies the bin/create.bat file to process the optional --process-exec-path argument
if present. It also modfies bin/create to include the --process-exec-path in the 'nopt' options.



--
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


Mime
View raw message