{ "id": "119357", "key": "TIMOB-15023", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-09-26T20:07:36.000+0000", "created": "2013-08-31T00:28:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T21:29:17.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h5. Description:\r\nWhile trying to perform a functional review on an SDK pull request for master, we were unable to build. It seems this is caused by missing dependencies. Bryan came over to help resolve, but encountered the same problem on his system.\r\n\r\nMissing is:\r\n{code}\r\n[ERROR] Error: Cannot find module 'semver'\r\n[ERROR] Error: Cannot find module 'sprintf'\r\n{code}\r\n\r\nThe result when trying to build is typically:\r\n{code}\r\n[ERROR] Failed to load command \"build\"\r\n[ERROR] Error: Cannot find module 'sprintf'\r\n\r\nat Object. (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/exception.js:33:27)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)\r\n at Module._load (module.js:312:12)\r\n at Module.require (module.js:364:17)\r\n at require (module.js:380:17)\r\n at Object. (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/auth.js:25:18)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n{code}\r\n\r\nh5. Steps to reproduce:\r\n1) Install a build of master\r\n2) Update to CLI 1.2.0 using: sudo npm install -g git://github.com/appcelerator/titanium.git\r\n3) Copy node_appc 0.2.0 into the SDK if it does not exist\r\n4) Attempt to build for iOS device via studio\r\n\r\nh5. Result:\r\nFailure to build\r\n\r\nh5. Expected Result:\r\nProject builds and installs to iTunes, sync starts", "attachment": [], "flagged": false, "summary": "CLI: Missing dependencies prevent building for device", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.4\r\nXcode 5 beta 6\r\nCLI: 3.2.0\r\nAlloy: 1.2.1\r\nAppcelerator Studio, build: 3.1.3.201308252005\r\nTitanium SDK version 3.2.0 (Pull request version)", "comment": { "comments": [ { "id": "273025", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "You can't just copy node-appc into the Titanium CLI's node_modules dir. You need to \"cd\" into the node-appc directory and run \"npm install\" to download all dependencies.\r\n\r\nThis is a non-issue today anyways. I've updated the Titanium CLI's node-appc dependency to pull directly from git and thus master Titanium CLI will have master node-appc and everything will work.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-09-26T20:07:36.000+0000", "updated": "2013-09-26T20:07:36.000+0000" }, { "id": "415003", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:29:17.000+0000", "updated": "2017-03-22T21:29:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }