Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23982] CLI: Android module build errors out with spawn ti ENOENT when building without --build-only and ti cli not installed globally

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2017-08-14T10:39:08.000+0000
Affected Version/sRelease 6.0.0, Release 5.5.1
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeYordan Banev
Created2016-10-04T20:29:33.000+0000
Updated2017-08-14T10:39:33.000+0000

Description

Description

*This is not a regression, occurs using 5.5.1.GA components* When building an Android module without --build-only, using appc run and not having ti CLI installed globally the build process errors out with the below. This comes from the CLI attempting to [spawn ti](https://github.com/appcelerator/titanium_mobile/blob/master/android/cli/commands/_buildModule.js#L1487). * This only happens when using appc run and not having ti CLI installed globally
[INFO]  Writing module zip: /Users/eharris/Documents/Appcelerator_Studio_Workspace/testmodule/android/dist/com.appc.testmod-android-1.0.0.zip
2016-10-06T07:19:20.229Z | ERROR  | An uncaught exception was thrown!
spawn ti ENOENT
2016-10-06T07:19:20.229Z | ERROR  | spawn ti ENOENT

Steps to reproduce

Create an android module appc new --type timodule --name awesomOandroid --id com.awesomO.windows-p android

cd awesomOandroid \android

appc run -p android

Actual result

Module build fails

Expected result

Module build should not fail

Comments

No comments

JSON Source