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

Cannot run appc commands with CLI 4.2.0-5+

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: Release 5.0.0
    • Component/s: Core
    • Labels:
    • Environment:

      MacOS 10.11
      Studio 4.2.0.201507201802
      Ti SDK 4.2.0.v20150803102022
      Appc NPM 4.2.0-1
      Appc CLI 4.2.0-5 and 4.2.0-6
      Ti CLI 4.1.4
      Alloy 1.6.2
      Node v0.10.37
      Java 1.7.0_45
      preproduction

    • Severity:
      Blocker
    • Story Points:
      5
    • Sprint:
      2015 Sprint 16 Tooling

      Description

      When using CLI core 4.2.0-5+ I am unable to build, clean, or run appc info. I get the below error:

      Failed to load appc-cli-titanium plugin from /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium: Cannot find module 'tmp'
      Preproduction Environment Active
       
      Error: Cannot find module 'tmp'
          at Function.Module._resolveFilename (module.js:338:15)
          at Function.Module._load (module.js:280:25)
          at Module.require (module.js:364:17)
          at require (module.js:380:17)
          at Object.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium/plugins/util.js:25:8)
          at Module._compile (module.js:456:26)
          at Object.Module._extensions..js (module.js:474:10)
          at Module.load (module.js:356:32)
          at Function.Module._load (module.js:312:12)
          at Module.require (module.js:364:17)
      EWieberMBA:CardEngine ewieber$ appc run -p ios --force
      Appcelerator Command-Line Interface, version 4.2.0-5
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      WARN   | Failed to load appc-cli-titanium plugin from /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium: Cannot find module 'tmp'
      Preproduction Environment Active
       
      Failed to load appc-cli-titanium plugin from /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium: Cannot find module 'tmp'
      ERROR  | No valid targets for run. Are you in a project folder?
      

      Steps to reproduce issue
      1. Install and use CLI core 4.2.0-5+
      2. Build a project from the CLI

      Actual Results
      Commands fail with above error

      Expected Results
      Commands run without error

      Notes
      Workaround is to go to your appc-cli-titanium folder and run npm install

      DEBUG  | [PLUGIN-LOAD] 0ms /Users/ewieber/.appcelerator/install/4.2.0-5/package/appc.js
        appc:sdk set production to https://platform.appcelerator.com +0ms
      WARN   | Failed to load appc-cli-titanium plugin from /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium
        Error: Cannot find module 'tmp'
          at Function.Module._resolveFilename (module.js:338:15)
          at Function.Module._load (module.js:280:25)
          at Module.require (module.js:364:17)
          at require (module.js:380:17)
          at Object.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium/plugins/util.js:25:8)
          at Module._compile (module.js:456:26)
          at Object.Module._extensions..js (module.js:474:10)
          at Module.load (module.js:356:32)
          at Function.Module._load (module.js:312:12)
          at Module.require (module.js:364:17)
      DEBUG  | [PLUGIN-LOAD] 0ms /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/arrow/appc.js
        appc:sdk set production to https://platform.appcelerator.com +0ms
      log level set to "trace"
      executing command "run"
        appc:sdk set preproduction to https://360-preprod.cloud.appctest.com +412ms
      Preproduction Environment Active
       
      set environment to {"registry":"https://software-preprod.cloud.appctest.com","security":"https://security-preprod.cloud.appctest.com","baseurl":"https://360-preprod.cloud.appctest.com"}
      checking credentials for existing session
      Attempting to load session info from config file
      check if session is invalidated
        appc:sdk api response, err=null, body='{"success":true,"result":{"_id":"52a6686f6f55f4c71f00000e","user_id":1502094,"guid":"140c7c37-542c-46f4-9fd2-9e3775972432","openid":"18a8f7e1-fb81-4163-b9cb-3941a69d78a8","firstname":"Eric","lastname":"Wieber","username":"ewieber@appcelerator.com","email":"ewieber@appcelerator.com","is_staff":true,"org_id":100001711}}' +317ms
      session expiry 1438899154275 false
      Arrow Cloud config file: /Users/ewieber/.acs
      found Arrow Cloud login { mid: '662eaf87211bfeea94c2d90fde5a774fe958c6e8',
        publishPort: 443,
        publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com',
        username: 'ewieber@appcelerator.com',
        cookie: [ 'connect.sid=s%3ACEx4KSsQPqo7BytNjQ2C1egN.DXl385vkJcEKhpGc2KKVNEA0D4ymLyAxeUB9qh4S2Uc; Path=/; Expires=Thu, 06 Aug 2015 22:13:18 GMT; HttpOnly' ],
        defaultEP: 
         { publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com',
           publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise-preprod.appctest.com
      Arrow Cloud cookie expiry [ 1438899198000 ]
      session already loaded in opts.session
      getCredentials() session:
      {
        "ipaddress": "172.16.0.28",
        "username": "ewieber@appcelerator.com",
        "password": "<OMITTED>",
        "session": "<OMITTED>",
        "nonce": "<OMITTED>",
        "environment": {
          "name": "production",
          "isProduction": true,
          "acsBaseUrl": "https://preprod-api.cloud.appctest.com",
          "acsAuthBaseUrl": "https://dolphin-secure-identity.cloud.appcelerator.com",
          "nodeACSEndpoint": "https://admin.cloudapp-enterprise-preprod.appctest.com"
        },
        "token": "<OMITTED>",
        "fingerprint": "662eaf87211bfeea94c2d90fde5a774fe958c6e8",
        "fingerprint_description": "Mac OSX Serial Number: C02H6083DRQ4",
        "org_id": 100001711,
        "expiry": 1438899154275
      }
      loading plugins for command "run"
      run search paths:
      [
        "/Users/ewieber/.appcelerator/install/4.2.0-5/package",
        "/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules",
        "/Users/ewieber/Documents/Appcelerator_Studio_Workspace_save/CardEngine/plugins",
        "/Users/ewieber/Documents/Appcelerator_Studio_Workspace_save/CardEngine/node_modules",
        "/Users/ewieber/Documents/Appcelerator_Studio_Workspace_save/node_modules",
        "/Users/ewieber/Documents/node_modules",
        "/Users/ewieber/node_modules",
        "/Users/node_modules",
        "/node_modules",
        "/Users/ewieber/.appcelerator/.npm/lib/node_modules"
      ]
      [PLUGIN-LOAD] 0ms /Users/ewieber/.appcelerator/install/4.2.0-5/package/appc.js
        appc:sdk set preproduction to https://360-preprod.cloud.appctest.com +0ms
      Failed to load appc-cli-titanium plugin from /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium
        Error: Cannot find module 'tmp'
          at Function.Module._resolveFilename (module.js:338:15)
          at Function.Module._load (module.js:280:25)
          at Module.require (module.js:364:17)
          at require (module.js:380:17)
          at Object.<anonymous> (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/appc-cli-titanium/plugins/util.js:25:8)
          at Module._compile (module.js:456:26)
          at Object.Module._extensions..js (module.js:474:10)
          at Module.load (module.js:356:32)
          at Function.Module._load (module.js:312:12)
          at Module.require (module.js:364:17)
      [PLUGIN-LOAD] 1ms /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/arrow/appc.js
      run plugin: /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/arrow
      plugin "arrow" failed its "when" function check, skipping...
      Duplicate option "colors" for command "run", removing...
      executing command "run" with the following plugins:
      []
      ERROR  | Error: No valid targets for run. Are you in a project folder?
          at async.series.async.each.executeArgs (/Users/ewieber/.appcelerator/install/4.2.0-5/package/lib/commands/run.js:26:15)
          at /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:607:21
          at /Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:246:17
          at iterate (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:146:13)
          at async.eachSeries (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:162:9)
          at _asyncMap (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:245:13)
          at Object.mapSeries (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:228:23)
          at Object.async.series (/Users/ewieber/.appcelerator/install/4.2.0-5/package/node_modules/async/lib/async.js:605:19)
          at run (/Users/ewieber/.appcelerator/install/4.2.0-5/package/lib/commands/run.js:21:8)
          at /Users/ewieber/.appcelerator/install/4.2.0-5/package/lib/core.js:498:12
        appc:run signal received +2s exit sending to { domain: null,
        _events: { close: [Function] },
        _maxListeners: 10,
        _closesNeeded: 1,
        _closesGot: 1,
        connected: false,
        signalCode: null,
        exitCode: 1,
        killed: false,
        _handle: null,
        pid: 6576,
        stdin: null,
        stdout: null,
        stderr: null,
        stdio: [ null, null, null ] }
      

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              ewieber Eric Wieber
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code