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

CLI Platform Add Support for Non Global NodeJS Path

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 5.0.1
    • None
    • cordova-lib
    • Command line environments where "node" isn't the PATH of the current process.

    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.

      Steps To Resolution

      1. Update platform tooling sub shell scripts in platforms to process an additional --process-exec-path argument if present.
        • cordova-amazon-fireos
        • cordova-android
        • cordova-blackberry
        • cordova-firefoxos
        • cordova-ios
        • cordova-ubuntu
        • cordova-wp8
        • cordova-windows
        • Optional Additional Platforms (cordova-browser, cordova-osx, cordova-tizen)
      2. Update general tooling in cordova-lib / cordova-cli to allow the user to explicitly specify that the process exec path should be passed through when spawning sub shell processes.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Rhinobyte Ryan Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment