{ "id": "116313", "key": "AC-1812", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-28T18:30:42.000+0000", "created": "2013-06-21T11:25:03.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:42.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": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "I ran the Titanium command using CLI, and I got the following error:\r\n\r\n{code}[DEBUG] Detecting plugins in /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/plugins\r\n[DEBUG] Detected plugin: ti.alloy @ /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/plugins/ti.alloy\r\n[DEBUG] Looking for Titanium plugin id: ti.alloy version: 1.0\r\n[DEBUG] Loaded plugin hooks:\r\n[DEBUG] /Users/amsadmin/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130619101604/cli/hooks/plugins.js\r\n[DEBUG] /Users/amsadmin/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130619101604/iphone/cli/hooks/install.js\r\n[DEBUG] /Users/amsadmin/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130619101604/iphone/cli/hooks/package.js\r\n[DEBUG] /Users/amsadmin/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130619101604/iphone/cli/hooks/run.js\r\n[DEBUG] /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/plugins/ti.alloy/hooks/alloy.js\r\n[DEBUG] Titanium iOS SDK directory: /Users/amsadmin/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.v20130619101604/iphone\r\n[INFO] Deploy type: development\r\n[INFO] Building for target: simulator\r\n[INFO] Building using iOS SDK: 6.1\r\n[INFO] Building for iOS iPad Simulator: 6.1\r\n[INFO] Building for device family: ipad\r\n[DEBUG] Setting Xcode target to Debug\r\n[DEBUG] Setting Xcode build OS to iphonesimulator6.1\r\n[DEBUG] Xcode installation: /Applications/Xcode.app/Contents/Developer\r\n[DEBUG] iOS WWDR certificate: installed\r\n[INFO] Minimum iOS version: 5.0\r\n[INFO] Debugging disabled\r\n[INFO] Profiler disabled\r\n[INFO] Initiating prepare phase\r\n[DEBUG] Building for the following architectures: armv7 armv7s i386\r\n[INFO] Forcing rebuild: /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/build/iphone/build-manifest.json does not exist\r\n[INFO] Found Alloy app in /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/app\r\n[INFO] Executing Alloy compile: /Users/amsadmin/local/node/bin/node compile /Users/amsadmin/jenkins/workspace/CICA_eAgent/CICA_eAgent/app --config platform=ios,version=0,simtype=none,devicefamily=ipad,deploytype=development\r\n[ERROR] module.js:340\r\n[ERROR] throw err;\r\n[ERROR] ^\r\n[ERROR] Error: Cannot find module '/Users/amsadmin/undefined'\r\n[ERROR] at Function.Module._resolveFilename (module.js:338:15)\r\n[ERROR] at Function.Module._load (module.js:280:25)\r\n[ERROR] at Function.Module.runMain (module.js:497:10)\r\n[ERROR] at startup (node.js:119:16)\r\n[ERROR] at node.js:901:3\r\n[ERROR] Alloy compiler failed{code}", "attachment": [], "flagged": false, "summary": "iOS: CLI: module.js :340 and throw err cannot find module.", "creator": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "build cmd:titanium build --platform ios --build-only --project-dir /Users/venkatesh/Desktop/CICA_eAgent\r\nnode version: v0.10.10\r\nnpm version: 1.2.25\r\ntitanium sdk:3.1.2.v20130619101604\r\ntitanium CLI installation, i followed the following link.\r\n\r\nhttp://docs.appcelerator.com/titanium/latest/#!/guide/Titanium_Command-Line_Interface_Reference-section-35619828_TitaniumCommand-LineInterfaceReference-InstallNode.js\r\n", "comment": { "comments": [ { "id": "259218", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi venkatesh,\n\nYou'll need to install node.js 0.8.x. You're using 0.10, which isn't properly supported yet.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-24T18:54:16.000+0000", "updated": "2013-06-24T18:54:16.000+0000" }, { "id": "259491", "author": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nI tried for V0.8.0 but getting the same problem.\r\n\r\nWaiting for your reply,\r\nRegards,\r\nVenkatesh\r\n", "updateAuthor": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-26T11:27:33.000+0000", "updated": "2013-06-26T11:27:33.000+0000" }, { "id": "259971", "author": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-28T08:45:35.000+0000", "updated": "2013-06-28T08:45:35.000+0000" }, { "id": "259982", "author": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\n\nThe above problem is solved, need to update alloy by using following command\n\nsudo npm install -g alloy\n\nRegards,\nVenkatesh", "updateAuthor": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-28T12:00:09.000+0000", "updated": "2013-06-28T12:00:09.000+0000" }, { "id": "259984", "author": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\nThe above problem is resolved by updating alloy using following cmd\n\nsudo npm install -g alloy\n\nRegards,\nVenkatesh Guttal", "updateAuthor": { "name": "venkatesh.guttal@accenture.com", "key": "venkatesh.guttal@accenture.com", "displayName": "venkatesh guttal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-28T12:14:34.000+0000", "updated": "2013-06-28T12:14:34.000+0000" }, { "id": "260029", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the update. Closing as fixed.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-28T18:30:42.000+0000", "updated": "2013-06-28T18:30:42.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }