{ "id": "110241", "key": "AC-1963", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-02-26T17:28:12.000+0000", "created": "2013-02-26T17:15:04.000+0000", "labels": [ "alloy", "jake", "modules" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:53.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "h1. Problem\r\nCan't run test apps in alloy git repository. Code under [*Running Sample Test Apps*|https://github.com/appcelerator/alloy/#running-sample-test-apps] does not work.\r\n\r\nh1. Test case\r\n# install jake: {{sudo npm install -g jake}}\r\n# Get into the root directory of the cloned alloy repository.\r\n# Find a test app in test/apps folder you want to run. For example, basics/simple or models/todo.\r\n# Run jake: jake app:run dir=basics/simple\r\n\r\n{code}\r\n$ jake app:run dir=basics/simple --trace\r\njake aborted.\r\nError: Cannot find module 'colors'\r\n at Function.Module._resolveFilename (module.js:338:15)\r\n at Function.Module._load (module.js:280:25)\r\n at Module.require (module.js:362:17)\r\n at require (module.js:378:17)\r\n at Object. (//alloy/Alloy/utils.js:5:11)\r\n at Module._compile (module.js:449:26)\r\n at Object.Module._extensions..js (module.js:467:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.require (module.js:362:17)\r\n{code}", "attachment": [], "flagged": false, "summary": "can't run test apps in alloy git repository", "creator": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.0.2.GA\r\nJavascript Engine: V8\r\nPlatform & version: irrelevant\r\nDevice Details: irrelevant\r\nHost Operating System: OS X 10.7.5\r\nTitanium Studio version: 3.0.2.201302191606\r\nJake: 0.5.8", "comment": { "comments": [ { "id": "239807", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You need to install the other dependencies of \"jake\", which includes \"colors\" (as noted in the error message) and you will likely get prompted for other dependencies as well. All can installed as such:\n\n{code}\nsudo npm install -g NAME_OF_MODULE\n{code}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T17:27:53.000+0000", "updated": "2013-02-26T17:27:53.000+0000" }, { "id": "239811", "author": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think it's not clear that 'colors' is a module to be installed from npm, cause the error seems coming from Alloy/utils.js\nCan you improve alloy documentation on github?\nThanks", "updateAuthor": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-26T17:37:14.000+0000", "updated": "2013-02-26T17:37:14.000+0000" }, { "id": "239812", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't improve the documentation there. That is an exception error produced by nodejs, not alloy itself. It tells you it can't find a nodejs module, which would happen in any nodejs app missing a dependency, so i'm not sure what else it could really tell you.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T17:42:19.000+0000", "updated": "2013-02-26T17:42:19.000+0000" }, { "id": "267075", "author": { "name": "americos", "key": "americos", "displayName": "Americo Savinon", "active": true, "timeZone": "America/New_York" }, "body": "Probably a good addition to the docs in github on how to run the test apps (https://github.com/appcelerator/alloy#running-sample-test-apps), maybe to be included inside #2, is to run: {code}npm install {code} from the root directory of the cloned alloy repository. This will make things more clear on how to successfully run the sample apps.", "updateAuthor": { "name": "americos", "key": "americos", "displayName": "Americo Savinon", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-18T18:05:45.000+0000", "updated": "2013-08-18T18:05:45.000+0000" }, { "id": "267107", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~americos] good catch! I updated the README.md to be more clear, based on your suggestion. Next time just submit a pull request and have yourself immortalized forever as an Alloy contributor. ;-)", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-19T14:09:17.000+0000", "updated": "2013-08-19T14:09:17.000+0000" }, { "id": "267144", "author": { "name": "americos", "key": "americos", "displayName": "Americo Savinon", "active": true, "timeZone": "America/New_York" }, "body": "Sounds Good Tony, will do next time :)", "updateAuthor": { "name": "americos", "key": "americos", "displayName": "Americo Savinon", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-19T16:55:00.000+0000", "updated": "2013-08-19T16:55:00.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }