[
https://issues.apache.org/jira/browse/CB-9017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Thomas updated CB-9017:
----------------------------
Description:
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.
was:
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]
> 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, iOS
> 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: [email protected]
For additional commands, e-mail: [email protected]