Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15694] NPM: CLI - NPM creates titanium aliases in different bin directories

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-11-15T20:08:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelsqe-3.2.0, qe-nfc
ReporterWilson Luu
AssigneeChris Barber
Created2013-11-11T19:52:27.000+0000
Updated2013-11-15T21:48:26.000+0000

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 Also, TiStudio seems to be using the titanium alias from the /usr/bin directory:
"/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"
Verified with other QE members that their TiStudio is using the titanium alias from /usr/local/bin; *this is only affecting my machine.* *Possible reproducible steps:* 1. Switch between different versions of TiStudio i.e. GA, RC, or Nightly 2. Allow TiStudio to install Titanium CLI *Actual:* Titanium aliases are created in different directories (see attachments). *Expected:* Titanium aliases should only be created in /usr/local/bin since my *npm get prefix* is set to /usr/local.

Attachments

FileDateSize
user_bin.png2013-11-11T19:52:27.000+0000225550
usr_local_bin.png2013-11-11T19:52:27.000+0000118680

Comments

  1. Wilson Luu 2013-11-12

    Workaround if your machine is in this strange state: 1. Delete titanium folder from: /usr/local/lib/node_modules 2. Delete both titanium and ti aliases from: /usr/local/bin and /usr/bin 3. Do a cache clean: sudo npm cache clean 3b. OR manually remove ~/.npm directory 4. Next, install titanium cli: sudo npm install -g titanium OR sudo npm install -g git://github.com/appcelerator/titanium.git 5. Verify both titanium and ti aliases are in /usr/local/bin and the titanium folder exists in /usr/local/lib/node_modules
  2. Ingo Muschenetz 2013-11-15

    Unable to reproduce, but please reopen if this should happen again.
  3. Wilson Luu 2013-11-15

    Closing as cannot reproduce.

JSON Source