{ "id": "122313", "key": "TIMOB-15694", "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": "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-15T20:08:34.000+0000", "created": "2013-11-11T19:52:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.0", "qe-nfc" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-15T21:48:26.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": "*Details:* NPM have some how created titanium aliases in two different location: /usr/local/bin and /usr/bin (see attachments). Both aliases are pointing to the correct titanium executable which is: /usr/local/lib/node_modules/titanium/bin/titanium\r\n\r\nAlso, TiStudio seems to be using the titanium alias from the /usr/bin directory:\r\n{code}\r\n\"/usr/bin/titanium\" \"--no-colors\" \"--no-progress-bars\" \"--no-prompt\" \"build\" \"--platform\" \"iphone\" \"--sdk\" \"3.2.0.v20131110134044\" \"--log-level\" \"trace\" \"--target\" \"device\" \"--ios-version\" \"7.0.3\" \"--developer-name\" \"QE Department (C64864TF2L)\" \"--device-id\" \"08e438859cff384c07529d645ca188746afeb8c7\" \"--pp-uuid\" \"98F73243-B6CA-4F18-A4A6-64ED9096038C\"\r\n{code}\r\nVerified with other QE members that their TiStudio is using the titanium alias from /usr/local/bin; *this is only affecting my machine.*\r\n\r\n\r\n*Possible reproducible steps:*\r\n1. Switch between different versions of TiStudio i.e. GA, RC, or Nightly\r\n2. Allow TiStudio to install Titanium CLI\r\n\r\n*Actual:* Titanium aliases are created in different directories (see attachments).\r\n\r\n*Expected:* Titanium aliases should only be created in /usr/local/bin since my *npm get prefix* is set to /usr/local.", "attachment": [ { "id": "43806", "filename": "user_bin.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-11T19:52:27.000+0000", "size": 225550, "mimeType": "image/png" }, { "id": "43807", "filename": "usr_local_bin.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-11T19:52:27.000+0000", "size": 118680, "mimeType": "image/png" } ], "flagged": false, "summary": "NPM: CLI - NPM creates titanium aliases in different bin directories", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.2.0.201311100540\r\nSDK build: 3.2.0.v20131110134044\r\nCLI: 3.2.0 master (4c816f21d7d9360659d77e9a6a994992ef880b72)", "comment": { "comments": [ { "id": "279230", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Workaround if your machine is in this strange state:\n\n1. Delete titanium folder from: /usr/local/lib/node_modules\n2. Delete both titanium and ti aliases from: /usr/local/bin and /usr/bin\n3. Do a cache clean: sudo npm cache clean\n3b. OR manually remove ~/.npm directory\n4. Next, install titanium cli: sudo npm install -g titanium OR sudo npm install -g git://github.com/appcelerator/titanium.git\n5. Verify both titanium and ti aliases are in /usr/local/bin and the titanium folder exists in /usr/local/lib/node_modules", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T22:34:08.000+0000", "updated": "2013-11-12T22:34:08.000+0000" }, { "id": "279844", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce, but please reopen if this should happen again.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T20:08:34.000+0000", "updated": "2013-11-15T20:08:34.000+0000" }, { "id": "279868", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as cannot reproduce.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T21:48:26.000+0000", "updated": "2013-11-15T21:48:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }