node.js - Why is Appcellerator Titanium's terminal different from my OSs terminal? -
i'm having following problem installing titanium studio. on mac (osx yosemite), terminal shows have node, npm, titanium, alloy etc. installed , 'callable' path. titanium studio keeps failing run because can't find cli.
if go titanium's terminal view, absolutely nothing seems installed. 'ls', 'cd' etc. cannot run. know i'm missing here? it's .bashrec never gets loaded or something. appreciate pointers in right direction,
cheers,
wittner
ok. looks had nothing titanium , system setup, might others experience same symptoms.
turns out .bash_profile incorrectly set up.
.bash_profile batch file holds information (among other things) current path. file, if exists, gets run every time terminal started up. 1 of path statements in file ended without :$path
:$path concatenates current path when putting path command in file e.g.:
export path=/etc/bin/ export path=/applications:$path
the ':$path' @ end of second statement ensures path contains both /etc/bin/ , /applications. without :$path, second line have set path /applications only, overwriting /etc/bin/ entry.
so in effect of path commands before last 1 had been overwritten. terminal not see ls, cd or of command line tools were. own terminal worked fine because had using ksh (korn shell) had set fancy colours , listing options. when titanium tried load fresh copy of terminal, path being overwritten , alloy, node etc. not visible it.
i fixed erroneous path statements in .bash_profile, restarted app , titanium works fine.
Comments
Post a Comment