Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-623

The CLI should have a minimum Node version

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: None
    • Labels:
    • Environment:

      Mac OSX 10.10.3
      Appc CLI (NPM): 0.3.55
      Appc CLI (Registry): 0.2.282
      Node: 0.8.22

    • Severity:
      Minor
    • Story Points:
      3
    • Sprint:
      2015 Sprint 10 Tooling

      Description

      Description

      When attempting to run the Appc CLI using an older Node version such as 0.8.22 the CLI will error out with the below

      /usr/local/lib/node_modules/appcelerator/lib/download.js:18
      	tmpdir = os.tmpdir(),
      	            ^
      TypeError: Object #<Object> has no method 'tmpdir'
          at Object.<anonymous> (/usr/local/lib/node_modules/appcelerator/lib/download.js:18:14)
      

      After some research it appears that this is due to having an older Node which does not support this function.

      If the user has an older version of Node then something similar to Titanium should happen where it prints out the following rather than failing on code.

      ERROR: Titanium requires Node.js 0.10 or newer.
       
      Visit http://nodejs.org/ to download a newer version.
      

      Steps To Reproduce

      1. Either install Node 0.8.22 or use a package manager to switch to 0.8.22
      2. Run appc use

      Actual Result

      Running appc use will error out with the above

      Expected Result

      Attempting to run a command when using an older version should tell the user to upgrade to a newer version

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Praveen Innamuri (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code