[TIMOB-15694] NPM: CLI - NPM creates titanium aliases in different bin directories
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-11-15T20:08:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | CLI |
Labels | qe-3.2.0, qe-nfc |
Reporter | Wilson Luu |
Assignee | Chris Barber |
Created | 2013-11-11T19:52:27.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
user_bin.png | 2013-11-11T19:52:27.000+0000 | 225550 |
usr_local_bin.png | 2013-11-11T19:52:27.000+0000 | 118680 |
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
Unable to reproduce, but please reopen if this should happen again.
Closing as cannot reproduce.