TypeError: Arguments to path.join must be strings

593 views
Skip to first unread message

Michael Potter

unread,
May 5, 2013, 2:16:41 PM5/5/13
to appc-...@googlegroups.com
I am getting this error:

cust-64:upload pottmi$ titanium build
Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.1.0.GA
Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

[ERROR] TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join [as join] (path.js:358:36)
    at Object.exports.detect [as detect] (/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/node-appc/lib/android.js:40:30)
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/android/cli/commands/_build.js:28:11
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/titanium-sdk/lib/titanium.js:105:5
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:454:21
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:185:13
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:86:13
    at Array.forEach (native)

[ERROR] Unable to find command "build"

cust-64:upload pottmi$ env |grep NPM_CONFIG_PREFIX
NPM_CONFIG_PREFIX=/Users/pottmi

My two questions are:

1) How do I update the CLI to version 3.1.0.GA?
2) How can I fix this above errors?

Chris Barber

unread,
May 5, 2013, 3:27:02 PM5/5/13
to Michael Potter, appc-...@googlegroups.com
We are aware of the problem and have a ticket to fix it: https://jira.appcelerator.org/browse/TIMOB-13652. We'll get it fixed soon.

-Chris


--

Chris Barber

Lead Platform Engineer

Appcelerator, Inc.

 

cbarber@appcelerator.com

M: (612) 309-9567

unknown.png: cb1kenobi

http://www.appcelerator.com

 

unknown_1.png

The Next Generation Mobile Platform



--
You received this message because you are subscribed to the Google Groups "Appc Titanium CLI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appc-ti-cli...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Potter

unread,
May 5, 2013, 3:34:27 PM5/5/13
to appc-...@googlegroups.com, Michael Potter
Is there some work around?

I would be happy to remove every single Titanium related item on my computer and then reinstall.
I would just need an authoritative list of what those items are.


On Sunday, May 5, 2013 3:27:02 PM UTC-4, Chris Barber wrote:
We are aware of the problem and have a ticket to fix it: https://jira.appcelerator.org/browse/TIMOB-13652. We'll get it fixed soon.

-Chris


--

Chris Barber

Lead Platform Engineer

Appcelerator, Inc.

 

Chris Barber

unread,
May 5, 2013, 3:38:11 PM5/5/13
to Michael Potter, appc-...@googlegroups.com
I believe the workaround is way easier than reinstalling everything. Open the Terminal, then run:

titanium config android.sdkPath /path/to/android-sdk

There are actually two bugs related to TIMOB-13652; one where the "android.sdkPath" config variable is null/empty string and one where you don't have the Android SDK installed at all (which is not required).

-Chris

Michael Potter

unread,
May 9, 2013, 11:24:54 AM5/9/13
to appc-...@googlegroups.com
Just to get closure on this issue:
I installed the Android SDK and I am not longer having a problem building for iOS.
Reply all
Reply to author
Forward
0 new messages