For the last couple of days I have been trying to figure out why I cannot install the Titanium CLI properly to run the emulators within TitaniumStudio to try out my code. I have tried installing the CLI through TitaniumStudio and always get an error message at the end that the updates were not installed properly. I have also tried installing the CLI through the terminal and made sure that NodeJS was the latest stable build along with having it in the correct path as specified on the appcelerator docs. Below I have pasted the log file I recently got. Before trying this last time I cleared the log history and restarted to make sure to close whatever process may have been running in the background just in case.
I also have issues with running the npm command after installing NodeJS. Sometimes I get a node.js 134 throw exception when trying to install the Titanium CLI even though it seems that NodeJS installed properly.
Application type: Mobile Project
Titanium SDK: 3.1.3.GA
Platform & version: All >> iOS x.x, Android x.x, Blackberry x.x, OSX x.x, Windows x, Ubuntu x.x
Device: All device emulators
Host Operating System: Mac OSX 10.8.5
6. Titanium Studio: Build: 3.1.3.201309132423
!ENTRY org.eclipse.core.jobs 2 2 2013-10-31 23:12:35.214 !MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.aptana.usage.internal.DefaultAnalyticsEventHandler$1 !SESSION 2013-11-01 00:18:37.015 ----------------------------------------------- eclipse.buildId=3.1.3.201309132423 java.version=1.6.0_51 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/ervinaven/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/ervinaven/.eclipse_keyring -consoleLog -showlocation
!ENTRY org.eclipse.core.net 1 0 2013-11-01 00:19:00.832 !MESSAGE System property http.nonProxyHosts has been set to local|.local|169.254/16|.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY com.appcelerator.titanium.acs.ui 4 0 2013-11-01 00:19:07.661 !MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to log into Node.ACS !STACK 1 org.eclipse.core.runtime.CoreException: Failed to list installed packages for npm. at com.aptana.js.internal.core.node.NodePackageManager.list(NodePackageManager.java:339) at com.aptana.js.internal.core.node.NodePackageManager.isInstalled(NodePackageManager.java:394) at com.appcelerator.titanium.acs.internal.ui.NodeACSStartup$2.run(NodeACSStartup.java:73) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.aptana.js.core 4 0 2013-11-01 00:19:07.662 !MESSAGE Failed to list installed packages for npm.
!ENTRY com.aptana.js.core 4 0 2013-11-01 00:20:04.602 !MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install titanium.
node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot call method 'apply' of undefined at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25) at EventEmitter.log (native) at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21) at EventEmitter.info (native) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5 at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12)
!ENTRY com.aptana.js.core 4 0 2013-11-01 00:20:05.232 !MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install alloy.
node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot call method 'apply' of undefined at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25) at EventEmitter.log (native) at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21) at EventEmitter.info (native) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5 at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12)
!ENTRY com.aptana.js.core 4 0 2013-11-01 00:20:05.870 !MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install acs.
node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot call method 'apply' of undefined at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25) at EventEmitter.log (native) at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21) at EventEmitter.info (native) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5 at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12)
!ENTRY com.appcelerator.titanium.update 4 4 2013-11-01 00:20:05.875 !MESSAGE Error encountered during update !SUBENTRY 1 com.aptana.js.core 4 0 2013-11-01 00:20:05.875 !MESSAGE Failed to install titanium. Please see the Studio log for more information. !SUBENTRY 1 com.aptana.js.core 4 0 2013-11-01 00:20:05.876 !MESSAGE Failed to install alloy. Please see the Studio log for more information. !SUBENTRY 1 com.aptana.js.core 4 0 2013-11-01 00:20:05.876 !MESSAGE Failed to install acs. Please see the Studio log for more information.
================================================================================