{ "id": "122049", "key": "AC-2253", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-11-21T01:08:58.000+0000", "created": "2013-11-04T21:35:04.000+0000", "labels": [ "CLI", "Studio", "Titanium", "nodejs", "npm" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h3. Steps to Reproduce\nFollow 2 steps, get errors either way:\n\n1. Check for and install Titanium updates within Titanium Studio\n\n2. On Mac OSX terminal type:\n\nsudo npm install titanium -g\n\nh3. Actual Result\nFollowing copied from log file:\n\n!ENTRY com.aptana.js.core 4 0 2013-11-04 12:38:04.307\n!MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install titanium.\n \n \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\n \n!ENTRY com.aptana.js.core 4 0 2013-11-04 12:38:04.973\n!MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install acs.\n \n \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\n \n!ENTRY com.aptana.js.core 4 0 2013-11-04 12:38:05.639\n!MESSAGE (Build 3.1.3.201309132423) [ERROR] Failed to install alloy.\n \n \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\n \n!ENTRY com.appcelerator.titanium.update 4 4 2013-11-04 12:38:05.643\n!MESSAGE Error encountered during update\n!SUBENTRY 1 com.aptana.js.core 4 0 2013-11-04 12:38:05.643\n!MESSAGE Failed to install titanium. Please see the Studio log for more information.\n!SUBENTRY 1 com.aptana.js.core 4 0 2013-11-04 12:38:05.643\n!MESSAGE Failed to install acs. Please see the Studio log for more information.\n!SUBENTRY 1 com.aptana.js.core 4 0 2013-11-04 12:38:05.643\n!MESSAGE Failed to install alloy. Please see the Studio log for more information.\n\nh3. Expected Result\nShould install Titanium CLI to enable me to run device emulators in Titanium Studio.", "attachment": [ { "id": "43666", "filename": ".log", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T21:35:07.000+0000", "size": 17011, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "43665", "filename": ".log", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T21:35:06.000+0000", "size": 4657, "mimeType": "application/octet-stream; charset=ISO-8859-1" } ], "flagged": false, "summary": "Unable to run npm to install Titanium CLI. Gives same error.", "creator": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.1.3", "comment": { "comments": [ { "id": "278060", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is my first time submitting a ticket here. I am attempting to get Titanium Studio to work on Mac OSX. I don't see why there are 2 .log files attached, I only attached one file.", "updateAuthor": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T21:37:36.000+0000", "updated": "2013-11-04T21:37:36.000+0000" }, { "id": "278061", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\n\nAFAIK, npm's infrastructure is down today. \n\nPlease try to install later. npm is the NodeJS package manager that every single project in NodeJS uses, and looks like is the first time that is down.\n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-04T21:38:21.000+0000", "updated": "2013-11-04T21:38:21.000+0000" }, { "id": "278062", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "um, you DO know that at this very moment (monday november 4 2013) NPM itself is having technical problems....\nUntil that is resolved, be difficult to confirm/test your issue.\n\nConsider following (https://twitter.com/npmjs) to see when the NPM problem is resolved and then retests your scenario.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-04T21:39:03.000+0000", "updated": "2013-11-04T21:39:03.000+0000" }, { "id": "278072", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I will follow the twitter feed, see if that solves it. I have been trying for a few days though to test out my code but since Titanium CLI will not install I cannot proceed with my project.", "updateAuthor": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T22:18:46.000+0000", "updated": "2013-11-04T22:18:46.000+0000" }, { "id": "278076", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Understand. There are ways to install packages from a local directory, but the problem with that route is that titanium has a number of prerequisite packages that would need to be pulled from npm as well. I know its frustrating, wait to see if they get their act together. If you still have problems after npm is stable, we can help you from there.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-04T22:34:10.000+0000", "updated": "2013-11-04T22:34:10.000+0000" }, { "id": "278122", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just checked again for updates within Titanium Studio, I still get the same errors. Also ran the diagnostic tool, below is what I got:\n\nHost OS: Mac OS X\nOS Version: 10.8.5\nOS Arch: x86\n\nJRE Version: 1.6.0_65\nJRE Vendor: Apple Inc.\nJRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\n\nTitanium Studio Version: 3.1.3.201309132423\nInstall Directory: file:/Applications/Titanium Studio/\nWorkspace Directory: file:/Users/ervinaven/Documents/Titanium_Studio_Workspace/Full_Sail_University/VFW1311/\nVM Arguments: -Xms40m\n-Xmx1024m\n-Declipse.p2.unsignedPolicy=allow\n-Declipse.log.size.max=10000\n-Declipse.log.backup.max=5\n-Xdock:icon=../Resources/titanium.icns\n-XstartOnFirstThread\n-Dorg.eclipse.swt.internal.carbon.smallFonts\n-XX:MaxPermSize=256m\n-Djava.class.path=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar\n\nLanguage: en_US\n\nACS App URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt\nACS Login URL: https://api.cloud.appcelerator.com/v1/admins/studio_login.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt\nAndroid SDK Version: Google APIs Android 4.3\nAndroid NDK Version: r8e (64-bit)\nXCode Version: 5.0.1\nLatest Titanium SDK: 3.1.3.GA\n\nTitanium SDK Version: 3.1.3\nSDK Modules API Version:2\nSDK Timestamp: 09/18/13 12:00\nSDK Build Number: 222f4d1\nSDK Location: /Users/ervinaven/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA\n\nBrowsers\n - Default system web browser: Unknown (N/A)\n - Firefox: 24.0 (/Applications/Firefox.app/Contents/MacOS/firefox-bin)\n\nTitanium CLI Enabled: true\n\nNode.ACS Host URL: null\nNode.JS Version: Not installed\nNPM Path: /usr/local/bin/npm\nNPM Version: \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\n\nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\nPackages: \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n ^\nTypeError: Cannot call method 'apply' of undefined\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:63:25)\n at EventEmitter.log (native)\n at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:137:21)\n at EventEmitter.info (native)\n at /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:5\n at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:86:2)\n at Module._compile (module.js:404:26)\n at Object..js (module.js:410:10)\n at Module.load (module.js:336:31)\n at Function._load (module.js:297:12)\n\nENV:\nDBUS_LAUNCHD_SESSION_BUS_SOCKET=/tmp/launch-TDh0V3/unix_domain_listener\nSHELL=/bin/bash\nANDROID_NDK=/Users/ervinaven/Documents/Android/android-ndk-r8e\nTMPDIR=/var/folders/_0/sb5dh_k16zzgjjr2ylld_0l80000gn/T/\nSHLVL=1\n__CF_USER_TEXT_ENCODING=0x1F5:0:0\nPATH=/Users/ervinaven/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$HOME/bin:/usr/local/git/bin:/usr/local/share/npm/bin:/Users/ervinaven/.npm/titanium/3.1.2/package/bin:/usr/local/bin:/usr/local/lib/node_modules/npm/bin\nAPTANA_VERSION=3.1.3.1377024923\nCOMMAND_MODE=unix2003\nredirectErrorStream=\nUSER=ervinaven\ncom.apple.java.jvmTask=JNI\nPWD=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS\nHOME=/Users/ervinaven\nLOGNAME=ervinaven\nApple_Ubiquity_Message=/tmp/launch-k7Cghs/Apple_Ubiquity_Message\nNPM_CONFIG_PREFIX=/Users/ervinaven\nApple_PubSub_Socket_Render=/tmp/launch-YINs3L/Render\nSSH_AUTH_SOCK=/tmp/launch-b4WMsA/Listeners\nLANG=en_US.UTF-8\n\nSomewhere along the middle is the following:\n\n\nNode.ACS Host URL: null\nNode.JS Version: Not installed\nNPM Path: /usr/local/bin/npm\nNPM Version: \nnode.js:134\n throw e; // process.nextTick error, or 'error' event on first tick\n\nSo does that tell me that Node.JS is not installed? Also gives the NPM Path as '/usr/local/bin/npm' so is that the location where it should be installed? Is there a way to just install the package from nodejs.org and make it install or point to that location? Remember I am running Titanium Studio on a Mac.", "updateAuthor": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-05T03:50:21.000+0000", "updated": "2013-11-05T03:50:21.000+0000" }, { "id": "278385", "author": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to fix the issue. Before I installed Titanium Studio I updated Xcode to v5, but it did not update the command tools. To do that I had to go to preferences and do it manually. After that Studio detected nodeJS and I was able to install the missing components.", "updateAuthor": { "name": "ervinaven", "key": "ervinaven", "displayName": "Ervin Avendano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T07:18:37.000+0000", "updated": "2013-11-06T07:18:37.000+0000" }, { "id": "278410", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Ervin, glad you got it figured out. Both tooling sets (xcode and android) require a lot of picky little things to get them running on their own, then throw in the extra binding tools that appc uses and lots of potential for things to go wrong or get missed during setup.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-06T12:04:21.000+0000", "updated": "2013-11-06T12:04:21.000+0000" }, { "id": "280447", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Fixed by the user (configuration issue). ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T01:08:58.000+0000", "updated": "2013-11-21T01:08:58.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }